From d7be2c85610056cd780c9d4d66c46ae7c11c9704 Mon Sep 17 00:00:00 2001 From: mhochsteger Date: Tue, 7 Dec 2021 19:07:04 +0100 Subject: [PATCH] fix non-occ build on windows --- nglib/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nglib/CMakeLists.txt b/nglib/CMakeLists.txt index 6e296304..a8b4bac5 100644 --- a/nglib/CMakeLists.txt +++ b/nglib/CMakeLists.txt @@ -9,7 +9,6 @@ if(WIN32) $ $ - $ ) if(USE_GUI) set(nglib_objects ${nglib_objects} @@ -18,6 +17,9 @@ if(WIN32) $ ) endif(USE_GUI) + if(USE_OCC) + set(nglib_objects ${nglib_objects} $) + endif(USE_OCC) endif(WIN32) add_library(nglib SHARED nglib.cpp ${nglib_objects})