1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Add separate CMake preset for MSVC build with ccache

This commit is contained in:
Alexander Wilms 2023-10-09 21:48:49 +02:00
parent 3f83d54dc1
commit ec094006c8
2 changed files with 19 additions and 2 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

@ -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",