mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-25 02:43:02 -07:00
[Build] Report ccache skip on Windows explicitly
This commit is contained in:
parent
42f8465347
commit
9acbb0688d
1 changed files with 6 additions and 1 deletions
|
|
@ -40,7 +40,9 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# ccache does not support MSVC and must not auto-engage on Windows
|
# ccache does not support MSVC and must not auto-engage on Windows
|
||||||
# (it is installed unintentionally on the Windows CI runner)
|
# (it is installed unintentionally on the Windows CI runner).
|
||||||
|
# NOTE: this keys off the target OS, so a mingw/Ninja configuration on Windows
|
||||||
|
# also opts out of ccache even though the GNUCXX branch below supports it.
|
||||||
if(USE_CCACHE AND NOT WIN32)
|
if(USE_CCACHE AND NOT WIN32)
|
||||||
find_program(CCACHE_PROGRAM ccache)
|
find_program(CCACHE_PROGRAM ccache)
|
||||||
if(CCACHE_PROGRAM)
|
if(CCACHE_PROGRAM)
|
||||||
|
|
@ -52,6 +54,9 @@ if(USE_CCACHE AND NOT WIN32)
|
||||||
execute_process(COMMAND ${CCACHE_PROGRAM} --set-config sloppiness=pch_defines,time_macros)
|
execute_process(COMMAND ${CCACHE_PROGRAM} --set-config sloppiness=pch_defines,time_macros)
|
||||||
message(STATUS "Found CCache ${CCACHE_PROGRAM}")
|
message(STATUS "Found CCache ${CCACHE_PROGRAM}")
|
||||||
endif()
|
endif()
|
||||||
|
elseif(USE_CCACHE AND WIN32)
|
||||||
|
# An explicit opt-in must not disappear silently on Windows.
|
||||||
|
message(STATUS "ccache disabled: not supported for the MSVC toolchain on Windows")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WIN32 OR USE_VCPKG)
|
if(WIN32 OR USE_VCPKG)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue