Skip to content

Commit 7afca56

Browse files
committed
cmake: don't add --exclude-libs on Mac
1 parent aa14857 commit 7afca56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ if(HPP_FCL_HAS_QHULL)
214214
target_compile_definitions(${LIBRARY_NAME} PRIVATE -DHPP_FCL_HAS_QHULL)
215215
if (HPP_FCL_USE_SYSTEM_QHULL)
216216
target_link_libraries(${LIBRARY_NAME} PRIVATE Qhull::qhull_r Qhull::qhullcpp)
217-
if(UNIX)
217+
# On Linux, don't export libqhullcpp symbols to avoid conflict with other libraries
218+
# that depend on QHull
219+
if(UNIX AND NOT APPLE)
218220
set_target_properties(
219221
${LIBRARY_NAME} PROPERTIES LINK_FLAGS "-Wl,--exclude-libs,libqhullcpp")
220222
endif()

0 commit comments

Comments
 (0)