Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-10-26 19:08:43 +0300
committerbubnikv <bubnikv@gmail.com>2018-10-26 19:08:43 +0300
commitde55a60bf541c2d125373131b9d82cd0c511a064 (patch)
treeafbe8e8baa374b52ccb92c38c1a413f198068a8a /CMakeLists.txt
parent135ee60db45cca3da233eaae644d9da5dbc4a67a (diff)
Added /bigobj (Increase Number of Sections in .Obj file)
Fixed external declaration of slic3r_main()
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fbad4ca23..f4d1223fd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,8 +27,12 @@ option(SLIC3R_MSVC_COMPILE_PARALLEL "Compile on Visual Studio in parallel" 1)
option(SLIC3R_MSVC_PDB "Generate PDB files on MSVC in Release mode" 1)
option(SLIC3R_PERL_XS "Compile XS Perl module and enable Perl unit and integration tests" 0)
-if (MSVC AND SLIC3R_MSVC_COMPILE_PARALLEL)
- add_compile_options(/MP)
+if (MSVC)
+ if (SLIC3R_MSVC_COMPILE_PARALLEL)
+ add_compile_options(/MP)
+ endif ()
+ # /bigobj (Increase Number of Sections in .Obj file)
+ add_compile_options(-bigobj)
endif ()
# CMAKE_PREFIX_PATH is used to point CMake to the remaining dependencies (Boost, TBB, ...)