[cmake] Fix non-gui build

This commit is contained in:
Matthias Hochsteger 2019-11-27 14:03:20 +01:00
parent 2b683f70d5
commit 385040333b

View File

@ -51,10 +51,12 @@ if(USE_GUI)
endif(USE_GUI) endif(USE_GUI)
if(USE_PYTHON) if(USE_PYTHON)
if(${BUILD_FOR_CONDA} AND UNIX AND NOT APPLE) if(USE_GUI)
target_link_libraries( netgen -Wl,--no-as-needed ${PYTHON_LIBRARIES}) if(${BUILD_FOR_CONDA} AND UNIX AND NOT APPLE)
else() target_link_libraries( netgen -Wl,--no-as-needed ${PYTHON_LIBRARIES})
target_link_libraries( netgen ${PYTHON_LIBRARIES}) elseif()
target_link_libraries( netgen ${PYTHON_LIBRARIES})
endif()
endif() endif()
add_library(ngpy SHARED netgenpy.cpp) add_library(ngpy SHARED netgenpy.cpp)