diff --git a/CMakeLists.txt b/CMakeLists.txt index fb6df3ef3ef0236242ef2069495e0ccddcb3179c..8598f4cb8525eb0482dc41e12d7e64d18453ea07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,6 +219,7 @@ install( # install(EXPORT ...) will install the information about an export. Here, we # save it to a file {$libcaosdb_LIB_DEST}/libcaosdbTargets.cmake and prepend # everything inside libcaosdbTargets with the namespace libcaosdb::. +set(libcaosdb_CMAKE_DEST "${libcaosdb_LIB_DEST}/cmake/caosdb") install( # The export we want to save (matches name defined above containing the # install targets) @@ -229,7 +230,7 @@ install( # will use caosdb::caosdb) NAMESPACE caosdb:: # where to place the resulting file (here, we're putting it with the library) - DESTINATION ${libcaosdb_LIB_DEST} + DESTINATION ${libcaosdb_CMAKE_DEST} ) ## install(FILES ...) simply puts files in a certain place with certain @@ -238,7 +239,7 @@ install(FILES ${libcaosdb_INCL} DESTINATION ${libcaosdb_INCLUDE_DEST}) install(FILES ${hw_grpc_hdrs} ${hw_proto_hdrs} DESTINATION ${libcaosdb_INCLUDE_DEST}/${hw_hdrs_path}) install(FILES ${PROJECT_SOURCE_DIR}/caosdbConfig.cmake - DESTINATION ${libcaosdb_LIB_DEST}) + DESTINATION ${libcaosdb_CMAKE_DEST})