Only set CCACHE_PRESENT when it is not already defined
This commit is contained in:
parent
c186f30eef
commit
34691f7a8f
|
@ -36,7 +36,9 @@ if (NOT MSVC)
|
||||||
endif()
|
endif()
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-Os")
|
set(CMAKE_CXX_FLAGS_RELEASE "-Os")
|
||||||
|
|
||||||
find_program(CCACHE_PRESENT ccache)
|
if (NOT DEFINED CCACHE_PRESENT)
|
||||||
|
find_program(CCACHE_PRESENT ccache)
|
||||||
|
endif()
|
||||||
if(CCACHE_PRESENT)
|
if(CCACHE_PRESENT)
|
||||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
||||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
|
||||||
|
|
Loading…
Reference in New Issue