Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer authored Jul 20, 2021
1 parent c67e43a commit a081c48
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion rclpy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,17 @@ add_library(rclpy_common SHARED
)
target_link_libraries(rclpy_common PUBLIC
pybind11::pybind11
${PYTHON_LIBRARIES}
rcl::rcl
rmw::rmw
)

if(NOT APPLE)
target_link_libraries(rclpy_common ${PYTHON_LIBRARIES})
else()
set_target_properties(rclpy_common PROPERTIES
LINK_FLAGS "-undefined dynamic_lookup")
endif()

target_include_directories(rclpy_common PUBLIC
src/rclpy_common/include
)
Expand Down

0 comments on commit a081c48

Please sign in to comment.