Enable local and travis ccache
This commit is contained in:
parent
59cc952cef
commit
0234e82396
|
@ -6,6 +6,7 @@ notifications:
|
||||||
branches:
|
branches:
|
||||||
except:
|
except:
|
||||||
- modern
|
- modern
|
||||||
|
cache: ccache
|
||||||
addons:
|
addons:
|
||||||
sauce_connect:
|
sauce_connect:
|
||||||
username: "zoneminder"
|
username: "zoneminder"
|
||||||
|
|
|
@ -742,3 +742,9 @@ configure_file(
|
||||||
add_custom_target(uninstall
|
add_custom_target(uninstall
|
||||||
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake/cmake_uninstall.cmake)
|
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake/cmake_uninstall.cmake)
|
||||||
|
|
||||||
|
# Configure CCache if available
|
||||||
|
find_program(CCACHE_FOUND ccache)
|
||||||
|
if(CCACHE_FOUND)
|
||||||
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
||||||
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
|
||||||
|
endif(CCACHE_FOUND)
|
||||||
|
|
Loading…
Reference in New Issue