set CCACHE_BASEDIR for linker only when cmake generator is Ninja

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2022-02-03 17:21:13 +00:00
committed by Compute-Runtime-Automation
parent 9ff1307b4b
commit 5847881569

View File

@@ -474,7 +474,11 @@ if(CCACHE_EXE_FOUND AND CCACHE_ALLOWED)
message(STATUS "Using rule: ${NEO_RULE_LAUNCH_STR}")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${NEO_RULE_LAUNCH_STR})
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${NEO_RULE_LAUNCH_STR})
if("${CMAKE_GENERATOR}" STREQUAL "Ninja")
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${NEO_RULE_LAUNCH_STR})
else()
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif()
endif()
# Miscs options