Commit b170fa19 authored by Kai Szuttor's avatar Kai Szuttor

ccache: CCACHE_CPP2: yes.

parent a467a19d
......@@ -12,6 +12,7 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
CCACHE_DIR: /cache
CCACHE_MAXSIZE: 100G
CCACHE_CPP2: "yes"
with_ccache: "true"
check_permission:
......
......@@ -91,10 +91,10 @@ option(WITH_CCACHE "Use ccache compiler invocation." OFF)
if(WITH_CCACHE)
find_program(CCACHE ccache)
if(CCACHE)
message(STATUS "Found ccache ${CCACHE}.")
message(STATUS "Found ccache ${CCACHE}")
if(CMAKE_VERSION VERSION_LESS 3.4)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE})
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE})
else()
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE} CACHE STRING "ccache executable")
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment