[Build] Disable ccache auto-engage on Windows (MSVC)

This commit is contained in:
Lukas Brübach 2026-09-01 17:18:55 +02:00 committed by tooomm
parent 7f8eb50ef2
commit 2c78a994af

View file

@ -39,7 +39,9 @@ else()
)
endif()
if(USE_CCACHE)
# ccache does not support MSVC and must not auto-engage on Windows
# (it is installed unintentionally on the Windows CI runner)
if(USE_CCACHE AND NOT WIN32)
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
# Support Unix Makefiles and Ninja