Skip to content

Commit

Permalink
Update ros-noetic-rospack.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer authored Apr 27, 2023
1 parent 09ba104 commit a7b8f9e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions patch/ros-noetic-rospack.patch
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,3 @@ index 91dc79d..3d74661 100644
#add_definitions(-Wall)

set(API_BACKCOMPAT_V1 "YES" CACHE BOOL "Whether to enable backwards compatibility with old C++ API")
@@ -34,7 +34,12 @@ add_library(rospack
src/rospack_cmdline.cpp
src/utils.cpp
)
-target_link_libraries(rospack ${TinyXML2_LIBRARIES} ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
+target_link_libraries(rospack ${TinyXML2_LIBRARIES} ${Boost_LIBRARIES})
+if(NOT APPLE)
+ target_link_libraries(rospack ${PYTHON_LIBRARIES})
+else()
+ set_target_properties(rospack PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
+endif()

add_executable(rospackexe src/rospack_main.cpp)
# Set the name, and make it a "global" executable

0 comments on commit a7b8f9e

Please sign in to comment.