From 980db2dbb7bc31a36892a2c741927c82b82568b7 Mon Sep 17 00:00:00 2001 From: Davide Faconti Date: Tue, 21 May 2024 18:19:22 +0200 Subject: [PATCH] Add in call to ament_export_targets. (#826) --- CMakeLists.txt | 2 +- cmake/ament_build.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 38d820bb2..72b541695 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -214,7 +214,7 @@ endif() # INSTALL INSTALL(TARGETS ${BTCPP_LIBRARY} - EXPORT ${PROJECT_NAME}Targets + EXPORT ${BTCPP_LIBRARY}Targets ARCHIVE DESTINATION ${BTCPP_LIB_DESTINATION} LIBRARY DESTINATION ${BTCPP_LIB_DESTINATION} RUNTIME DESTINATION ${BTCPP_BIN_DESTINATION} diff --git a/cmake/ament_build.cmake b/cmake/ament_build.cmake index 9de2fd099..55c3011b2 100644 --- a/cmake/ament_build.cmake +++ b/cmake/ament_build.cmake @@ -33,5 +33,6 @@ mark_as_advanced( macro(export_btcpp_package) ament_export_include_directories(include) ament_export_libraries(${BTCPP_LIBRARY}) + ament_export_targets(${BTCPP_LIBRARY}Targets) ament_package() endmacro()