From 50caa139527ef1a0b236548b9e893d9c47a578a9 Mon Sep 17 00:00:00 2001 From: Lennart Nachtigall Date: Fri, 15 Dec 2023 13:36:17 +0100 Subject: [PATCH] Fix build issue on ros2 humble --- soem_rsl/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/soem_rsl/CMakeLists.txt b/soem_rsl/CMakeLists.txt index 1fe55ef..0d2e23c 100644 --- a/soem_rsl/CMakeLists.txt +++ b/soem_rsl/CMakeLists.txt @@ -95,9 +95,8 @@ target_include_directories(soem_rsl message("LIB_DIR: ${soem_rsl_LIB_INSTALL_DIR}") -install(TARGETS soem_rsl EXPORT soem_rslConfig DESTINATION ${soem_rsl_LIB_INSTALL_DIR}) +install(TARGETS soem_rsl DESTINATION lib) -install(EXPORT soem_rslConfig DESTINATION share/soem_rsl/cmake) install(FILES ${soem_rsl_HEADERS} @@ -112,7 +111,9 @@ install(FILES ) ament_export_include_directories(include) - +ament_export_libraries( + soem_rsl +) #message(${CMAKE_INSTALL_PREFIX}) #add_custom_target(link_target ALL # COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_INSTALL_PREFIX}/include/soem_rsl/ethercattype.h ${CMAKE_INSTALL_PREFIX}/include/ethercattype.h