diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f0af2d41..a61dee6e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -92,10 +92,13 @@ else() | |||
| 92 | # /W3 - Level 3 warnings | 92 | # /W3 - Level 3 warnings |
| 93 | # /MP - Multi-threaded compilation | 93 | # /MP - Multi-threaded compilation |
| 94 | # /Zi - Output debugging information | 94 | # /Zi - Output debugging information |
| 95 | # /Zo - enahnced debug info for optimized builds | 95 | # /Zo - enhanced debug info for optimized builds |
| 96 | set(CMAKE_C_FLAGS "/W3 /MP /Zi /Zo" CACHE STRING "" FORCE) | 96 | # /permissive- - enables stricter C++ standards conformance checks |
| 97 | set(CMAKE_C_FLAGS "/W3 /MP /Zi /Zo /permissive-" CACHE STRING "" FORCE) | ||
| 97 | # /EHsc - C++-only exception handling semantics | 98 | # /EHsc - C++-only exception handling semantics |
| 98 | set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} /EHsc" CACHE STRING "" FORCE) | 99 | # /Zc:throwingNew - let codegen assume `operator new` will never return null |
| 100 | # /Zc:inline - let codegen omit inline functions in object files | ||
| 101 | set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} /EHsc /Zc:throwingNew,inline" CACHE STRING "" FORCE) | ||
| 99 | 102 | ||
| 100 | # /MDd - Multi-threaded Debug Runtime DLL | 103 | # /MDd - Multi-threaded Debug Runtime DLL |
| 101 | set(CMAKE_C_FLAGS_DEBUG "/Od /MDd" CACHE STRING "" FORCE) | 104 | set(CMAKE_C_FLAGS_DEBUG "/Od /MDd" CACHE STRING "" FORCE) |