mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
[cmake] Fix non-gui build
This commit is contained in:
parent
2b683f70d5
commit
385040333b
@ -51,11 +51,13 @@ if(USE_GUI)
|
|||||||
endif(USE_GUI)
|
endif(USE_GUI)
|
||||||
|
|
||||||
if(USE_PYTHON)
|
if(USE_PYTHON)
|
||||||
|
if(USE_GUI)
|
||||||
if(${BUILD_FOR_CONDA} AND UNIX AND NOT APPLE)
|
if(${BUILD_FOR_CONDA} AND UNIX AND NOT APPLE)
|
||||||
target_link_libraries( netgen -Wl,--no-as-needed ${PYTHON_LIBRARIES})
|
target_link_libraries( netgen -Wl,--no-as-needed ${PYTHON_LIBRARIES})
|
||||||
else()
|
elseif()
|
||||||
target_link_libraries( netgen ${PYTHON_LIBRARIES})
|
target_link_libraries( netgen ${PYTHON_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
add_library(ngpy SHARED netgenpy.cpp)
|
add_library(ngpy SHARED netgenpy.cpp)
|
||||||
target_link_libraries( ngpy PUBLIC nglib PRIVATE netgen_python )
|
target_link_libraries( ngpy PUBLIC nglib PRIVATE netgen_python )
|
||||||
|
Loading…
Reference in New Issue
Block a user