1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Enable ccache support for MinGW

This commit is contained in:
Joakim Thorén 2024-01-02 01:59:01 +01:00
parent 100664e019
commit eeab16a57d

View File

@ -84,9 +84,9 @@ if(ENABLE_CCACHE)
find_program(CCACHE ccache REQUIRED)
endif()
# On Linux, use ccache via CMAKE_CXX_COMPILER_LAUNCHER.
# On Linux and MinGW, use ccache via CMAKE_CXX_COMPILER_LAUNCHER.
# The XCode and MSVC builds each require some more configuration further down.
if(ENABLE_CCACHE AND LINUX)
if(ENABLE_CCACHE AND (LINUX OR MINGW))
set(CMAKE_C_COMPILER_LAUNCHER "ccache")
set(CMAKE_CXX_COMPILER_LAUNCHER "ccache")
endif()