mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
[cmake] Fix build error without GUI
This commit is contained in:
parent
a874e64756
commit
672a67bb15
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user