mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-18 08:28:58 +02:00
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:
parent
9d2341eaea
commit
89808632fb
2 changed files with 8 additions and 4 deletions
4
externals/cmake-modules/UseCcache.cmake
vendored
4
externals/cmake-modules/UseCcache.cmake
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue