Skip to content

Commit

Permalink
Fix installation location for cmake files.
Browse files Browse the repository at this point in the history
The installation location of the cmake files is now correct if the prefix is overwritten at installation time. 

Signed-off-by: Richard <[email protected]>
  • Loading branch information
roe85 authored and willhoy committed Jul 17, 2024
1 parent 43651ae commit 11859eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rmq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 11859eb

Please sign in to comment.