Skip to content
Snippets Groups Projects
Commit 0db7f36e authored by Martin Storø Nyfløtt's avatar Martin Storø Nyfløtt Committed by Danilo Piparo
Browse files

Override CMAKE_IGNORE_PATH when looking for ccache

parent 6a63e33b
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,14 @@ include(MacroEnsureVersion)
#---Enable CCache ------------------------------------------------------------------------------
if(ccache)
find_program(ccache_cmd NAMES ccache ccache-swig HINTS /usr/local/bin/)
set(CMAKE_IGNORE_PATH_TMP ${CMAKE_IGNORE_PATH})
unset(CMAKE_IGNORE_PATH)
find_program(ccache_cmd NAMES ccache ccache-swig)
mark_as_advanced(ccache_cmd ${ccache_cmd})
set(CMAKE_IGNORE_PATH ${CMAKE_IGNORE_PATH_TMP})
if(ccache_cmd)
message(STATUS "Using ccache for building")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
......
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