diff options
| author | Mike Taves <mwtoews@gmail.com> | 2021-11-19 23:55:09 +1300 |
|---|---|---|
| committer | Mike Taves <mwtoews@gmail.com> | 2021-11-20 00:56:48 +1300 |
| commit | dd74dd05a055cb882388862f8a3fe6e3ba4b194b (patch) | |
| tree | d37a8707018c670852b53a99c462408625be37a6 /CMakeLists.txt | |
| parent | ac882266b57d04720bb645b8144901127f7427cf (diff) | |
| download | PROJ-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.txt | 6 |
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) |
