diff options
| author | Matias Fontanini <matias.fontanini@gmail.com> | 2019-02-20 18:29:14 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-20 18:29:14 -0800 |
| commit | 659bec56d7658928fdc880e43973d03d4d1b6cbc (patch) | |
| tree | c5d0ad531c1ee62638f170b3d00d0e7fe3f55f76 | |
| parent | d8d1dc003bb15517935c3d7c12aed0a463438304 (diff) | |
| parent | 8c1bea6f8412c1d6027a65793b578a1fd8f6cc81 (diff) | |
Merge pull request #331 from Kaisrlik/cmake_config_file_location
cmake: update location of cmake configuration files for unix subsystems
| -rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a6377bc..9e2eec6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 @@ -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 ) |
