switch off optimizations in MSVC
This commit is contained in:
parent
a63c794521
commit
c89ca716c5
1 changed files with 4 additions and 1 deletions
|
@ -8,8 +8,11 @@ add_executable(json_unit
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(CMAKE_CXX_FLAGS
|
set(CMAKE_CXX_FLAGS
|
||||||
"/EHsc /Od"
|
"/EHsc"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
STRING(REPLACE "-O2" "-Od" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
|
||||||
|
|
||||||
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
|
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
|
||||||
else(MSVC)
|
else(MSVC)
|
||||||
set(CMAKE_CXX_FLAGS
|
set(CMAKE_CXX_FLAGS
|
||||||
|
|
Loading…
Reference in a new issue