Add ccache support
This commit is contained in:
parent
b0447677f1
commit
4ed751ad5a
1 changed files with 4 additions and 2 deletions
|
|
@ -571,9 +571,11 @@ proc buildLibrary(lname, outdir, conFlags, cmakeFlags, makeFlags: string): strin
|
|||
gen = "MinGW Makefiles".quoteShell
|
||||
else:
|
||||
gen = "Unix Makefiles".quoteShell
|
||||
cmake(outdir / "build", "Makefile", &".. -G {gen} {cmakeFlags}")
|
||||
if findExe("ccache").len != 0:
|
||||
gen &= " -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
|
||||
makePath = outdir / "buildcache"
|
||||
cmake(makePath, "Makefile", &".. -G {gen} {cmakeFlags}")
|
||||
cmakeDeps = true
|
||||
makePath = outdir / "build"
|
||||
else:
|
||||
cmakeDepStr &= "cmake executable missing"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue