Skip to content

Commit

Permalink
cmake: don't add --exclude-libs on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Feb 5, 2024
1 parent aa14857 commit 7afca56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ if(HPP_FCL_HAS_QHULL)
target_compile_definitions(${LIBRARY_NAME} PRIVATE -DHPP_FCL_HAS_QHULL)
if (HPP_FCL_USE_SYSTEM_QHULL)
target_link_libraries(${LIBRARY_NAME} PRIVATE Qhull::qhull_r Qhull::qhullcpp)
if(UNIX)
# On Linux, don't export libqhullcpp symbols to avoid conflict with other libraries
# that depend on QHull
if(UNIX AND NOT APPLE)
set_target_properties(
${LIBRARY_NAME} PROPERTIES LINK_FLAGS "-Wl,--exclude-libs,libqhullcpp")
endif()
Expand Down

0 comments on commit 7afca56

Please sign in to comment.