Commit 88605121 authored by Kai Szuttor's avatar Kai Szuttor

ccache: ccache and clang do not play well together sometimes.

parent a467a19d
Pipeline #3426 failed with stages
in 30 minutes and 15 seconds
......@@ -98,6 +98,10 @@ if(WITH_CCACHE)
else()
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE} CACHE STRING "ccache executable")
endif()
# See http://peter.eisentraut.org/blog/2014/12/01/ccache-and-clang-part-3/ why that is needed.
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
set(ENV{CCACHE_CPP2} "true")
endif()
else()
message(FATAL_ERROR "ccache not found.")
endif(CCACHE)
......
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