summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 884520cef..2cba5e8a1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,6 +17,7 @@ else()
17 # As far as I can tell, there's no way to override the CMake defaults while leaving user 17 # As far as I can tell, there's no way to override the CMake defaults while leaving user
18 # changes intact, so we'll just clobber everything and say sorry. 18 # changes intact, so we'll just clobber everything and say sorry.
19 message(STATUS "Cache compiler flags ignored, please edit CMakeFiles.txt to change the flags.") 19 message(STATUS "Cache compiler flags ignored, please edit CMakeFiles.txt to change the flags.")
20 # /MP - Multi-threaded compilation
20 # /MD - Multi-threaded runtime 21 # /MD - Multi-threaded runtime
21 # /Ox - Full optimization 22 # /Ox - Full optimization
22 # /Oi - Use intrinsic functions 23 # /Oi - Use intrinsic functions
@@ -24,7 +25,7 @@ else()
24 # /GR- - Disable RTTI 25 # /GR- - Disable RTTI
25 # /GS- - No stack buffer overflow checks 26 # /GS- - No stack buffer overflow checks
26 # /EHsc - C++-only exception handling semantics 27 # /EHsc - C++-only exception handling semantics
27 set(optimization_flags "/MD /Ox /Oi /Oy- /DNDEBUG /GR- /GS- /EHsc") 28 set(optimization_flags "/MP /MD /Ox /Oi /Oy- /DNDEBUG /GR- /GS- /EHsc")
28 # /Zi - Output debugging information 29 # /Zi - Output debugging information
29 # /Zo - enahnced debug info for optimized builds 30 # /Zo - enahnced debug info for optimized builds
30 set(CMAKE_C_FLAGS_RELEASE "${optimization_flags} /Zi" CACHE STRING "" FORCE) 31 set(CMAKE_C_FLAGS_RELEASE "${optimization_flags} /Zi" CACHE STRING "" FORCE)