[cmake] Fix build error without GUI

This commit is contained in:
Matthias Hochsteger 2019-03-29 16:03:39 +01:00
parent a874e64756
commit 672a67bb15

View File

@ -46,11 +46,11 @@ if(USE_GUI)
if(WIN32) if(WIN32)
set_target_properties( gui PROPERTIES OUTPUT_NAME libgui ) set_target_properties( gui PROPERTIES OUTPUT_NAME libgui )
endif(WIN32) endif(WIN32)
target_link_libraries( gui PRIVATE ${PYTHON_LIBRARIES})
endif(USE_GUI) endif(USE_GUI)
if(USE_PYTHON) if(USE_PYTHON)
target_link_libraries( gui PRIVATE ${PYTHON_LIBRARIES})
add_library(ngpy SHARED netgenpy.cpp) add_library(ngpy SHARED netgenpy.cpp)
target_link_libraries( ngpy PUBLIC nglib PRIVATE ${PYTHON_LIBRARIES}) target_link_libraries( ngpy PUBLIC nglib PRIVATE ${PYTHON_LIBRARIES})
if(APPLE) if(APPLE)