aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2021-11-19 23:55:09 +1300
committerMike Taves <mwtoews@gmail.com>2021-11-20 00:56:48 +1300
commitdd74dd05a055cb882388862f8a3fe6e3ba4b194b (patch)
treed37a8707018c670852b53a99c462408625be37a6 /CMakeLists.txt
parentac882266b57d04720bb645b8144901127f7427cf (diff)
downloadPROJ-dd74dd05a055cb882388862f8a3fe6e3ba4b194b.tar.gz
PROJ-dd74dd05a055cb882388862f8a3fe6e3ba4b194b.zip
CMake: add option USE_CCACHE=OFF to use ccache to compile C/C++ objs
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 661b3f6a..c1d58405 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -122,6 +122,12 @@ set(PROJ_BUILD_VERSION "${PROJ_API_VERSION}.${PROJ_LIBTOOL_AGE}.${PROJ_LIBTOOL_R
################################################################################
# Build features and variants
################################################################################
+
+option(USE_CCACHE "Use ccache to compile C/C++ objects" OFF)
+if(USE_CCACHE)
+ include(Ccache)
+endif()
+
include(ProjConfig)
include(ProjMac)
include(policies)