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)