From 5646a725ddc5e1d7864103aac82d0dabbfa12699 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 21 Jul 2017 05:24:49 -0700 Subject: [PATCH] Fix non-GUI build on Windows --- nglib/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nglib/CMakeLists.txt b/nglib/CMakeLists.txt index ae1bb70c..965abc84 100644 --- a/nglib/CMakeLists.txt +++ b/nglib/CMakeLists.txt @@ -3,9 +3,7 @@ add_definitions(-DNGLIB_EXPORTS) if(WIN32) set(nglib_objects $ - $ $ - $ $ $ $ @@ -15,9 +13,15 @@ if(WIN32) $ $ - $ $ ) + if(USE_GUI) + set(nglib_objects ${nglib_objects} + $ + $ + $ + ) + endif(USE_GUI) endif(WIN32) add_library(nglib SHARED nglib.cpp ${nglib_objects})