Always use ccache for gcc (#1223)

* Try fix macos build

* Try fix macos build

* Alvays use ccache for gcc
This commit is contained in:
proller 2017-09-09 04:04:36 +03:00 committed by alexey-milovidov
parent 1d7b5cc5f9
commit 0e9681cdc2

View File

@ -5,7 +5,7 @@ if (CCACHE_FOUND AND NOT CMAKE_CXX_COMPILER_LAUNCHER MATCHES "ccache" AND NOT CM
string(REGEX REPLACE "ccache version ([0-9\\.]+).*" "\\1" CCACHE_VERSION ${CCACHE_VERSION} )
string(COMPARE GREATER ${CCACHE_VERSION} "3.2.0" CCACHE_VERSION_OK)
if (CCACHE_VERSION_OK)
if (CCACHE_VERSION_OK OR NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
#message(STATUS "Using ${CCACHE_FOUND} ${CCACHE_VERSION}")
set_property (GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_FOUND})
set_property (GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE_FOUND})