chore(compiler): use ccache if available

This commit is contained in:
Mayeul@Zama
2021-12-03 09:52:42 +01:00
committed by Quentin Bourgerie
parent bb1add2a6f
commit ec8614f2ea

View File

@@ -1,7 +1,12 @@
BUILD_DIR=./build
Python3_EXECUTABLE=
BINDINGS_PYTHON_ENABLED=ON
CCACHE=OFF
ifeq ($(shell which ccache),)
CCACHE=OFF
else
CCACHE=ON
endif
ifeq ($(CCACHE),ON)
CMAKE_CCACHE_OPTIONS=-DCMAKE_CXX_COMPILER_LAUNCHER=ccache