switch off optimizations in MSVC

This commit is contained in:
Niels 2015-07-16 19:32:19 +02:00
parent a63c794521
commit c89ca716c5

View file

@ -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