Skip to content

Commit 4e5fcdd

Browse files
mergify[bot]bjsowa
authored andcommitted
Don't export dl library when not used (#33) (#36)
(cherry picked from commit 1f5e5f1) Co-authored-by: Błażej Sowa <[email protected]>
1 parent d0b4783 commit 4e5fcdd

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
@@ -599,7 +599,10 @@ endif()
599599

600600
# Export old-style CMake variables
601601
ament_export_include_directories("include/${PROJECT_NAME}")
602-
ament_export_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS})
602+
603+
if(NOT RCUTILS_NO_FILESYSTEM)
604+
ament_export_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS})
605+
endif()
603606

604607
# Export modern CMake targets
605608
ament_export_targets(${PROJECT_NAME})

0 commit comments

Comments
 (0)