Skip to content

Commit b2be5df

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 <bsowa123@gmail.com>
1 parent c9885e9 commit b2be5df

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
@@ -600,7 +600,10 @@ endif()
600600

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

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

0 commit comments

Comments
 (0)