mirror of https://gitee.com/bigwinds/arangodb
make ccache optional (#10310)
This commit is contained in:
parent
b124113190
commit
1a83aaa43a
|
@ -52,11 +52,15 @@ endif()
|
||||||
### setup ccache
|
### setup ccache
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
find_program(CCACHE_FOUND ccache)
|
option(USE_CCACHE "Use CCACHE if present" ON)
|
||||||
|
|
||||||
if(CCACHE_FOUND)
|
if (USE_CCACHE)
|
||||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
find_program(CCACHE_FOUND ccache)
|
||||||
endif(CCACHE_FOUND)
|
|
||||||
|
if(CCACHE_FOUND)
|
||||||
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
||||||
|
endif(CCACHE_FOUND)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (USE_OPTIMIZE_FOR_ARCHITECTURE)
|
if (USE_OPTIMIZE_FOR_ARCHITECTURE)
|
||||||
include(OptimizeForArchitecture)
|
include(OptimizeForArchitecture)
|
||||||
|
|
Loading…
Reference in New Issue