mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
CMake: Add option ENABLE_CCACHE
This commit is contained in:
parent
9d30ff25c2
commit
71325828f6
|
@ -194,6 +194,13 @@ macro(set_fairmq_defaults)
|
||||||
endif()
|
endif()
|
||||||
list(APPEND PROJECT_STATIC_ANALYSERS "${analyser}")
|
list(APPEND PROJECT_STATIC_ANALYSERS "${analyser}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_GENERATOR STREQUAL Ninja AND ENABLE_CCACHE)
|
||||||
|
find_program(CCACHE ccache)
|
||||||
|
if(CCACHE)
|
||||||
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE})
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
function(join VALUES GLUE OUTPUT)
|
function(join VALUES GLUE OUTPUT)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user