diff --git a/src/rmq/CMakeLists.txt b/src/rmq/CMakeLists.txt index 49f1d03..e3ef66a 100644 --- a/src/rmq/CMakeLists.txt +++ b/src/rmq/CMakeLists.txt @@ -44,14 +44,14 @@ install( install(EXPORT rmqcppTargets FILE rmqcppTargets.cmake - DESTINATION ${CMAKE_INSTALL_PREFIX}/share/rmqcpp + DESTINATION share/rmqcpp NAMESPACE rmqcpp::) include(CMakePackageConfigHelpers) configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/rmqcppConfig.cmake" - INSTALL_DESTINATION ${CMAKE_INSTALL_PREFIX}/share/rmqcpp) -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/rmqcppConfig.cmake" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/rmqcpp) + INSTALL_DESTINATION share/rmqcpp) +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/rmqcppConfig.cmake" DESTINATION share/rmqcpp) # Emit some metadata required internally set(RMQ_PC_DEP_NAMES bsl bdl bal openssl)