Skip to content

Commit

Permalink
Don't link dl library when not needed (#28) (#30)
Browse files Browse the repository at this point in the history
(cherry picked from commit 55de2e1)

Co-authored-by: Błażej Sowa <bsowa123@gmail.com>
  • Loading branch information
mergify[bot] and bjsowa authored Jul 17, 2023
1 parent 10a0630 commit 91e657e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ configure_file(
"${PROJECT_BINARY_DIR}/include/rcutils/configuration_flags.h"
)

target_link_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS})
if(NOT RCUTILS_NO_FILESYSTEM)
target_link_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS})
endif()

# Needed if pthread is used for thread local storage.
if(IOS AND IOS_SDK_VERSION LESS 10.0)
Expand Down

0 comments on commit 91e657e

Please sign in to comment.