mirror of
https://github.com/nlohmann/json.git
synced 2025-11-24 11:54:34 +08:00
switch off optimizations in MSVC
This commit is contained in:
@@ -8,8 +8,11 @@ add_executable(json_unit
|
||||
|
||||
if(MSVC)
|
||||
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)
|
||||
else(MSVC)
|
||||
set(CMAKE_CXX_FLAGS
|
||||
|
||||
Reference in New Issue
Block a user