1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Merge pull request #3036 from Alexander-Wilms/disable-ccache-by-default

Set ENABLE_CCACHE to OFF by default
This commit is contained in:
Nordsoft91 2023-10-10 00:45:02 +02:00 committed by GitHub
commit 6c151e283a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 3 deletions

View File

@ -111,7 +111,7 @@ jobs:
test: 0
pack: 1
extension: exe
preset: windows-msvc-release
preset: windows-msvc-release-ccache
- platform: mingw-ubuntu
os: ubuntu-22.04
test: 0

View File

@ -82,7 +82,7 @@ endif()
# On Linux, use -DCMAKE_CXX_COMPILER_LAUNCHER=ccache instead.
# The XCode and MSVC builds each require some more configuration, which is enabled by the following option:
if(MSVC OR (CMAKE_GENERATOR STREQUAL "Xcode"))
option(ENABLE_CCACHE "Speed up recompilation by caching previous compilations" ON)
option(ENABLE_CCACHE "Speed up recompilation by caching previous compilations" OFF)
endif()
if(ENABLE_CCACHE AND (CMAKE_GENERATOR STREQUAL "Xcode"))

View File

@ -123,6 +123,17 @@
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
"CMAKE_POLICY_DEFAULT_CMP0091": "NEW",
"FORCE_BUNDLED_MINIZIP": "ON"
}
},
{
"name": "windows-msvc-release-ccache",
"displayName": "Windows x64 RelWithDebInfo with ccache",
"description": "VCMI RelWithDebInfo build with ccache",
"inherits": "windows-msvc-release",
"cacheVariables": {
"ENABLE_CCACHE": "ON"
}
},
{
@ -228,7 +239,8 @@
"description": "VCMI iOS release using Conan and ccache",
"inherits": "ios-release-conan",
"cacheVariables": {
"ENABLE_PCH" : "OFF"
"ENABLE_PCH" : "OFF",
"ENABLE_CCACHE": "ON"
}
},
{
@ -318,6 +330,11 @@
"inherits": "default-release",
"configuration": "Release"
},
{
"name": "windows-msvc-release-ccache",
"configurePreset": "windows-msvc-release-ccache",
"inherits": "windows-msvc-release"
},
{
"name": "windows-msvc-relwithdebinfo",
"configurePreset": "windows-msvc-release",