File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -151,8 +151,10 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MA
151
151
152
152
# The major alternative compiler to GCC/Clang is Microsoft's Visual C++ compiler, only available on Windows.
153
153
elseif (DEFINED MSVC )
154
+ # Remove NDEBUG from RELWITHDEBINFO (to enable asserts)
155
+ string (REPLACE "/DNDEBUG" " " CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} " )
154
156
155
- add_compile_options (/MP ) # enable parallel compilation
157
+ add_compile_options (/MP ) # enable parallel compilation
156
158
add_compile_options (/EHsc ) # specify Exception Handling Model in msvc
157
159
add_compile_options (/WX ) # enable warnings-as-errors
158
160
add_compile_options (/wd4068 ) # disable unknown pragma warning (4068)
You can’t perform that action at this time.
0 commit comments