mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-02 22:04:31 +05:00
[cmake] Link AppKit to avoid undefined references if OCC is statically linked on MacOS
This commit is contained in:
parent
6b99cf3c21
commit
495a6eddf7
@ -12,6 +12,11 @@ target_link_libraries(occ PUBLIC ngcore)
|
|||||||
|
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
target_link_libraries( occ PRIVATE ${OCC_LIBRARIES} ${PYTHON_LIBRARIES})
|
target_link_libraries( occ PRIVATE ${OCC_LIBRARIES} ${PYTHON_LIBRARIES})
|
||||||
|
if(USE_OCC AND APPLE)
|
||||||
|
# Link AppKit in case OCE was built as static libraries
|
||||||
|
find_library(AppKit AppKit)
|
||||||
|
target_link_libraries( occ PRIVATE ${AppKit} )
|
||||||
|
endif(USE_OCC AND APPLE)
|
||||||
install( TARGETS occ ${NG_INSTALL_DIR})
|
install( TARGETS occ ${NG_INSTALL_DIR})
|
||||||
if (USE_GUI)
|
if (USE_GUI)
|
||||||
target_link_libraries( occvis PUBLIC occ )
|
target_link_libraries( occvis PUBLIC occ )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user