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

Skip to content

Commit 1a83aaa

Browse files
authored
make ccache optional (#10310)
1 parent b124113 commit 1a83aaa

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
@@ -52,11 +52,15 @@ endif()
5252
### setup ccache
5353
################################################################################
5454

55-
find_program(CCACHE_FOUND ccache)
55+
option(USE_CCACHE "Use CCACHE if present" ON)
5656

57-
if(CCACHE_FOUND)
58-
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
59-
endif(CCACHE_FOUND)
57+
if (USE_CCACHE)
58+
find_program(CCACHE_FOUND ccache)
59+
60+
if(CCACHE_FOUND)
61+
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
62+
endif(CCACHE_FOUND)
63+
endif()
6064

6165
if (USE_OPTIMIZE_FOR_ARCHITECTURE)
6266
include(OptimizeForArchitecture)

0 commit comments

Comments
 (0)
0