Skip to content

Commit

Permalink
Merge pull request #331 from Kaisrlik/cmake_config_file_location
Browse files Browse the repository at this point in the history
cmake: update location of cmake configuration files for unix subsystems
  • Loading branch information
mfontanini authored Feb 21, 2019
2 parents d8d1dc0 + 8c1bea6 commit 659bec5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,12 @@ ENDIF()
# CMake project configuration export
# **********************************

if(UNIX)
set(CONF_CMAKE_INSTALL_DIR lib/cmake/libtins)
else()
set(CONF_CMAKE_INSTALL_DIR CMake)
endif()

# Add all targets to the build-tree export set
EXPORT(
TARGETS tins
Expand All @@ -337,13 +343,13 @@ INSTALL(
FILES
"${PROJECT_BINARY_DIR}/libtinsConfig.cmake"
"${PROJECT_BINARY_DIR}/libtinsConfigVersion.cmake"
DESTINATION CMake
DESTINATION ${CONF_CMAKE_INSTALL_DIR}
COMPONENT dev
)

# Install the export set for use with the install-tree
INSTALL(
EXPORT libtinsTargets
DESTINATION CMake
DESTINATION ${CONF_CMAKE_INSTALL_DIR}
COMPONENT dev
)

0 comments on commit 659bec5

Please sign in to comment.