Browse Source
Merge pull request #7531 from Morph1984/zm-msvc
CMakeLists: Specify /Zm200 when compiling in MSVC
pull/15/merge
bunnei
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
src/CMakeLists.txt
|
|
|
@ -24,6 +24,7 @@ if (MSVC) |
|
|
|
# /W3 - Level 3 warnings |
|
|
|
# /MP - Multi-threaded compilation |
|
|
|
# /Zi - Output debugging information |
|
|
|
# /Zm - Specifies the precompiled header memory allocation limit |
|
|
|
# /Zo - Enhanced debug info for optimized builds |
|
|
|
# /permissive- - Enables stricter C++ standards conformance checks |
|
|
|
# /EHsc - C++-only exception handling semantics |
|
|
|
@ -36,6 +37,7 @@ if (MSVC) |
|
|
|
add_compile_options( |
|
|
|
/MP |
|
|
|
/Zi |
|
|
|
/Zm200 |
|
|
|
/Zo |
|
|
|
/permissive- |
|
|
|
/EHsc |
|
|
|
|