mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
cmake: Disable CCache for local builds and enable by default for CI
This commit is contained in:
parent
552a88a895
commit
cfc12d0543
@ -52,7 +52,8 @@
|
||||
"inherits": ["macos"],
|
||||
"warnings": {"dev": true, "deprecated": true},
|
||||
"cacheVariables": {
|
||||
"CMAKE_COMPILE_WARNING_AS_ERROR": true
|
||||
"CMAKE_COMPILE_WARNING_AS_ERROR": true,
|
||||
"ENABLE_CCACHE": true
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -83,7 +84,8 @@
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
||||
"CMAKE_COMPILE_WARNING_AS_ERROR": true,
|
||||
"CMAKE_COLOR_DIAGNOSTICS": true
|
||||
"CMAKE_COLOR_DIAGNOSTICS": true,
|
||||
"ENABLE_CCACHE": true
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -102,8 +104,7 @@
|
||||
"cacheVariables": {
|
||||
"GPU_PRIORITY_VAL": {"type": "STRING", "value": "$penv{GPU_PRIORITY_VAL}"},
|
||||
"VIRTUALCAM_GUID": {"type": "STRING", "value": "A3FCE0F5-3493-419F-958A-ABA1250EC20B"},
|
||||
"ENABLE_BROWSER": true,
|
||||
"ENABLE_CCACHE": false
|
||||
"ENABLE_BROWSER": true
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -113,8 +114,7 @@
|
||||
"inherits": ["windows-x64"],
|
||||
"warnings": {"dev": true, "deprecated": true},
|
||||
"cacheVariables": {
|
||||
"CMAKE_COMPILE_WARNING_AS_ERROR": true,
|
||||
"ENABLE_CCACHE": false
|
||||
"CMAKE_COMPILE_WARNING_AS_ERROR": true
|
||||
}
|
||||
}
|
||||
],
|
||||
|
@ -11,7 +11,7 @@ endif()
|
||||
if(CCACHE_PROGRAM)
|
||||
message(DEBUG "Trying to find ccache on build host - done")
|
||||
message(DEBUG "Ccache found as ${CCACHE_PROGRAM}")
|
||||
option(ENABLE_CCACHE "Enable compiler acceleration with ccache" ON)
|
||||
option(ENABLE_CCACHE "Enable compiler acceleration with ccache" OFF)
|
||||
|
||||
if(ENABLE_CCACHE)
|
||||
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
|
||||
|
Loading…
Reference in New Issue
Block a user