8000 make ccache optional (#10310) · arangodb/arangodb@2206f62 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2206f62

Browse files
committed
make ccache optional (#10310)
1 parent 69747bc commit 2206f62

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

3rdParty/iresearch/CMakeLists.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,15 @@ endif()
4545
### setup ccache
4646
################################################################################
4747

48-
find_program(CCACHE_FOUND ccache)
48+
option(USE_CCACHE "Use CCACHE if present" ON)
4949

50-
if(CCACHE_FOUND)
51-
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
52-
endif(CCACHE_FOUND)
50+
if (USE_CCACHE)
51+
find_program(CCACHE_FOUND ccache)
52+
53+
if(CCACHE_FOUND)
54+
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
55+
endif(CCACHE_FOUND)
56+
endif()
5357

5458
if (USE_OPTIMIZE_FOR_ARCHITECTURE)
5559
include(OptimizeForArchitecture)

0 commit comments

Comments
 (0)
0