mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-24 11:14:01 +00:00
修复actions
This commit is contained in:
@@ -56,16 +56,20 @@ function(resolve_tool_with_fallback VAR_NAME)
|
||||
endif()
|
||||
set(_resolved "${_requested}")
|
||||
else()
|
||||
unset(_requested_path CACHE)
|
||||
unset(_requested_path)
|
||||
find_program(_requested_path NAMES "${_requested}")
|
||||
if(_requested_path)
|
||||
set(_resolved "${_requested}")
|
||||
set(_resolved "${_requested_path}")
|
||||
else()
|
||||
set(_resolved "")
|
||||
foreach(_cand IN LISTS _fallbacks)
|
||||
unset(_cand_path CACHE)
|
||||
unset(_cand_path)
|
||||
find_program(_cand_path NAMES "${_cand}")
|
||||
if(_cand_path)
|
||||
cl_log_warn("${VAR_NAME} '${_requested}' not found; fallback to '${_cand}'")
|
||||
set(_resolved "${_cand}")
|
||||
set(_resolved "${_cand_path}")
|
||||
break()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
Reference in New Issue
Block a user