Skip to content

Commit a2c4ba9

Browse files
mergify[bot]4ntnbjsowa
authored
Don't export dl library when not used (backport #33) (#35)
* micro-ROS Kilted patch Signed-off-by: Antón Casas <[email protected]> * Don't export dl library when not used (#33) (cherry picked from commit 1f5e5f1) --------- Signed-off-by: Antón Casas <[email protected]> Co-authored-by: Antón Casas <[email protected]> Co-authored-by: Błażej Sowa <[email protected]>
1 parent 5943118 commit a2c4ba9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

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

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

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

0 commit comments

Comments
 (0)