Prevents optimizations for debug configuration on Windows. (#1270)
This commit is contained in:
committed by
GitHub
parent
d39a1a0bdf
commit
e12e1d67c6
@@ -567,6 +567,10 @@ target_include_directories(${PROJECT_NAME} PRIVATE
|
||||
if(MSVC)
|
||||
if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64")
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE
|
||||
$<$<CONFIG:Debug>:
|
||||
/Od;
|
||||
/Oi-
|
||||
>
|
||||
$<$<CONFIG:Release>:
|
||||
/std:c++latest;
|
||||
/Oi;
|
||||
|
||||
@@ -1738,15 +1738,15 @@ if(MSVC)
|
||||
if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64")
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE
|
||||
$<$<CONFIG:Debug>:
|
||||
/sdl-;
|
||||
/w
|
||||
/w;
|
||||
/Od
|
||||
>
|
||||
$<$<CONFIG:Release>:
|
||||
/Oi;
|
||||
/sdl-;
|
||||
/Gy;
|
||||
/W3
|
||||
>
|
||||
/sdl-;
|
||||
/permissive-;
|
||||
/MP;
|
||||
${DEFAULT_CXX_DEBUG_INFORMATION_FORMAT};
|
||||
|
||||
Reference in New Issue
Block a user