Asan
Some checks failed
Bigfoot / Build & Test Debug (push) Failing after 1m10s
Bigfoot / Build & Test RelWithDebInfo (push) Failing after 1m17s
Bigfoot / Build & Test Release (push) Successful in 40s
Bigfoot / Clang Format Checks (push) Failing after 11s

This commit is contained in:
2026-02-20 19:44:57 +01:00
parent 82d02ce940
commit f0fca19046
16 changed files with 178 additions and 92 deletions

View File

@@ -0,0 +1,19 @@
# https://github.com/ccache/ccache/wiki/MS-Visual-Studio#usage-with-cmake
find_program(ccache_exe ccache)
if(ccache_exe)
file(COPY_FILE
${ccache_exe} ${CMAKE_BINARY_DIR}/cl.exe
ONLY_IF_DIFFERENT)
# By default Visual Studio generators will use /Zi which is not compatible
# with ccache, so tell Visual Studio to use /Z7 instead.
message(STATUS "Setting MSVC debug information format to 'Embedded'")
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<$<CONFIG:Debug,RelWithDebInfo>:Embedded>")
set(CMAKE_VS_GLOBALS
"CLToolExe=cl.exe"
"CLToolPath=${CMAKE_BINARY_DIR}"
"UseMultiToolTask=true"
)
endif()