From 672a67bb15b5ff5e32396f153fd41827b3f0ca43 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 29 Mar 2019 16:03:39 +0100 Subject: [PATCH] [cmake] Fix build error without GUI --- ng/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ng/CMakeLists.txt b/ng/CMakeLists.txt index b2f0841a..45bee626 100644 --- a/ng/CMakeLists.txt +++ b/ng/CMakeLists.txt @@ -46,11 +46,11 @@ if(USE_GUI) if(WIN32) set_target_properties( gui PROPERTIES OUTPUT_NAME libgui ) endif(WIN32) + target_link_libraries( gui PRIVATE ${PYTHON_LIBRARIES}) endif(USE_GUI) if(USE_PYTHON) - target_link_libraries( gui PRIVATE ${PYTHON_LIBRARIES}) add_library(ngpy SHARED netgenpy.cpp) target_link_libraries( ngpy PUBLIC nglib PRIVATE ${PYTHON_LIBRARIES}) if(APPLE)