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:
Alexander Neumann 2020-04-10 02:01:48 +02:00 committed by GitHub
parent 1448db9d6f
commit bf858077f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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()