Skip to content

Commit a5af31d

Browse files
mergify[bot]4ntnbjsowa
authored andcommitted
Don't export dl library when not used (backport #33) (#35)
* micro-ROS Kilted patch Signed-off-by: Antón Casas <antoncasas@eprosima.com> * Don't export dl library when not used (#33) (cherry picked from commit 1f5e5f1) --------- Signed-off-by: Antón Casas <antoncasas@eprosima.com> Co-authored-by: Antón Casas <antoncasas@eprosima.com> Co-authored-by: Błażej Sowa <bsowa123@gmail.com>
1 parent 5fa9c09 commit a5af31d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,10 @@ endif()
617617

618618
# Export old-style CMake variables
619619
ament_export_include_directories("include/${PROJECT_NAME}")
620-
ament_export_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS})
620+
621+
if(NOT RCUTILS_NO_FILESYSTEM)
622+
ament_export_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS})
623+
endif()
621624

622625
# Export modern CMake targets
623626
ament_export_targets(${PROJECT_NAME})

0 commit comments

Comments
 (0)