From 8acc8c9cb0f76628840f46edb05063957c4cfd1d Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 28 Aug 2019 09:41:42 -0700 Subject: [PATCH] User /bigobj flag on Windows builds --- libsrc/core/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/core/CMakeLists.txt b/libsrc/core/CMakeLists.txt index 15198d50..710faa12 100644 --- a/libsrc/core/CMakeLists.txt +++ b/libsrc/core/CMakeLists.txt @@ -24,6 +24,10 @@ if(NOT WIN32) target_compile_options(ngcore PRIVATE -fvisibility=hidden) endif(NOT WIN32) +if(WIN32) + target_compile_options(ngcore PUBLIC /bigobj) +endif(WIN32) + target_compile_definitions(ngcore PUBLIC $<$:NETGEN_ENABLE_CHECK_RANGE>) if(CHECK_RANGE)