Enable local and travis ccache

This commit is contained in:
Steve Gilvarry 2016-07-24 09:26:10 +10:00
parent 59cc952cef
commit 0234e82396
2 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@ notifications:
branches: branches:
except: except:
- modern - modern
cache: ccache
addons: addons:
sauce_connect: sauce_connect:
username: "zoneminder" username: "zoneminder"

View File

@ -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)