Skip to content
Snippets Groups Projects
Commit 5c199be8 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by GitHub
Browse files

Merge pull request #1950 from bilke/ccache-versions

Ccache versions
parents 86863c4e bb0d3fd1
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,19 @@ if(NOT CCACHE_TOOL_PATH)
return()
endif()
# Check ccache version
set(CCACHE_VERSION_REQUIRED 3.2.0)
execute_process(COMMAND ${CCACHE_TOOL_PATH} --version
OUTPUT_VARIABLE CCACHE_VERSION
)
if("${CCACHE_VERSION}" MATCHES "ccache version ([0-9]\\.[0-9]\\.[0-9])")
if(${CMAKE_MATCH_1} VERSION_LESS ${CCACHE_VERSION_REQUIRED})
message(STATUS "CCache outdated. Installed: ${CMAKE_MATCH_1}, \
required: ${CCACHE_VERSION_REQUIRED}. Caching disabled.")
return()
endif()
endif()
# Set ccache as the compiler launcher
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
......
......@@ -68,8 +68,7 @@ else()
endif()
# Add conan-community remote
if("${CONAN_REMOTES}" MATCHES "conan-community: \
https://api.bintray.com/conan/conan-community/conan")
if("${CONAN_REMOTES}" MATCHES "conan-community: https://api.bintray.com/conan/conan-community/conan")
execute_process(COMMAND ${CONAN_CMD} remote update -i 2 conan-community
https://api.bintray.com/conan/conan-community/conan)
else()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment