Skip to content

Commit f54b105

Browse files
mergify[bot]bjsowa
authored andcommitted
Don't export dl library when not used (#33) (#34)
(cherry picked from commit 1f5e5f1) Co-authored-by: Błażej Sowa <bsowa123@gmail.com>
1 parent dcfa308 commit f54b105

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
@@ -556,7 +556,10 @@ endif()
556556

557557
# Export old-style CMake variables
558558
ament_export_include_directories("include/${PROJECT_NAME}")
559-
ament_export_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS})
559+
560+
if(NOT RCUTILS_NO_FILESYSTEM)
561+
ament_export_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS})
562+
endif()
560563

561564
# Export modern CMake targets
562565
ament_export_targets(${PROJECT_NAME})

0 commit comments

Comments
 (0)