mirror of https://github.com/microsoft/vcpkg.git
fix vcpkg_find_acquire_program for script (#10621)
behavior before: one script found meant another script could not be searched since the first one would simply be returned.
This commit is contained in:
parent
1448db9d6f
commit
bf858077f2
|
|
@ -323,8 +323,8 @@ function(vcpkg_find_acquire_program VAR)
|
|||
find_program(${VAR} ${PROGNAME} PATHS ${PATHS})
|
||||
else()
|
||||
vcpkg_find_acquire_program(${REQUIRED_INTERPRETER})
|
||||
find_file(SCRIPT ${SCRIPTNAME} PATHS ${PATHS})
|
||||
set(${VAR} ${${REQUIRED_INTERPRETER}} ${SCRIPT})
|
||||
find_file(SCRIPT_${VAR} ${SCRIPTNAME} PATHS ${PATHS})
|
||||
set(${VAR} ${${REQUIRED_INTERPRETER}} ${SCRIPT_${VAR}})
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue