File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ list(APPEND CMAKE_MODULE_PATH
4646 ${CMAKE_CURRENT_SOURCE_DIR} /cmake/modules
4747 ${COPPELIASIM_INCLUDE_DIR} /cmake)
4848find_package (CoppeliaSim 4 REQUIRED )
49- find_package (Python3 REQUIRED COMPONENTS Interpreter )
49+ find_package (Python3 REQUIRED COMPONENTS Interpreter Development )
5050find_package (Boost REQUIRED )
5151
5252file (MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /generated )
@@ -110,6 +110,12 @@ target_include_directories(simROS2 PUBLIC
110110 $<BUILD_INTERFACE :${CMAKE_CURRENT_SOURCE_DIR} /include >
111111 $<INSTALL_INTERFACE :include >)
112112# target_link_libraries(simROS2 Boost::boost)
113+
114+ if (APPLE )
115+ # ROS libraries on macOS leave it to the application to load a Python shared library
116+ target_link_libraries (simROS2 PRIVATE Python3::Python )
117+ endif ()
118+
113119#ament_target_dependencies(simROS2 rclcpp)
114120ament_target_dependencies (
115121 simROS2
You can’t perform that action at this time.
0 commit comments