cmake: Improve building for Debug builds under Visual Studio

Only change Flags for MINGW Debug Builds and prevent using bundled Qt6 for debug builds
This commit is contained in:
Caio Oliveira 2026-02-14 15:44:09 -03:00 committed by crueter
parent 9d2341eaea
commit 89808632fb
2 changed files with 8 additions and 4 deletions

View file

@ -19,9 +19,9 @@ if(USE_CCACHE)
message(FATAL_ERROR "[UseCcache] USE_CCACHE enabled, but no "
"executable found at: ${CCACHE_PATH}")
endif()
# Follow SCCache recommendations:
# Follow SCCache recommendations only for MINGW:
# <https://github.com/mozilla/sccache/blob/main/README.md?plain=1#L144>
if(WIN32)
if(MINGW)
string(REPLACE "/Zi" "/Z7" CMAKE_CXX_FLAGS_DEBUG
"${CMAKE_CXX_FLAGS_DEBUG}")
string(REPLACE "/Zi" "/Z7" CMAKE_C_FLAGS_DEBUG