Skip to content

Commit

Permalink
CMAKE: Add ccache to compilation preset.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamievlin committed Aug 22, 2024
1 parent eb1b335 commit e5226cb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@
},
"hidden": true
},
{
"name": "base/linuxCcache",
"cacheVariables": {
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache"
},
"hidden": true
},
{
"name": "base/gccCompatCacheVar",
"cacheVariables": {
Expand Down Expand Up @@ -78,6 +86,12 @@
"binaryDir": "${sourceDir}/cmake-build-linux/release",
"inherits": ["base/buildBaseWithVcpkg", "base/release"]
},
{
"name": "linux/release-ccache",
"displayName": "[linux-x86/64] Release (with ccache)",
"binaryDir": "${sourceDir}/cmake-build-linux/release",
"inherits": ["base/buildBaseWithVcpkg", "base/release", "base/linuxCcache"]
},
{
"name": "linux/releaseWithDebugInfo",
"displayName": "[linux-x86/64] Release with Debug Info",
Expand Down Expand Up @@ -139,6 +153,11 @@
"name": "linux/release",
"displayName": "[linux-x86/64] Release",
"configurePreset": "linux/release"
},
{
"name": "linux/release-ccache",
"displayName": "[linux-x86/64] Release (with ccache)",
"configurePreset": "linux/release-ccache"
}
]
}

0 comments on commit e5226cb

Please sign in to comment.