mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
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:
committed by
Compute-Runtime-Automation
parent
9ff1307b4b
commit
5847881569
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user