make win debug builds a bit faster

This commit is contained in:
Luis Díaz Más 2021-05-16 13:43:55 +02:00
parent 6c2141959a
commit 08672dbea3

View File

@ -107,6 +107,7 @@ if(MSVC)
PATHS ENV CLCACHE_PATH
PATH_SUFFIXES Scripts clcache-4.1.0
)
if (CLCACHE)
message(STATUS "clcache found in ${CLCACHE}")
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
@ -116,6 +117,12 @@ if(MSVC)
endif()
endif()
# Make Debug builds a little faster without sacrificing debugging experience
#set (CMAKE_CXX_FLAGS_DEBUG "/MDd /Zi /Ob0 /Od /RTC1")
set (CMAKE_CXX_FLAGS_DEBUG "/MDd /Zi /Ob0 /Ox /Zo")
# /Ox (Enable Most Speed Optimizations)
# /Zo (Enhance Optimized Debugging)
set(variables
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_MINSIZEREL