aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2020-04-10 02:01:48 +0200
committerGitHub <noreply@github.com>2020-04-09 17:01:48 -0700
commitbf858077f29c54fecb053ac9843d37892279b770 (patch)
treeb74b08521d0c7c56fbeb07a5b50922e6f71066fe /scripts
parent1448db9d6f1a1ebe661c8d7b850a255c63002a01 (diff)
downloadvcpkg-bf858077f29c54fecb053ac9843d37892279b770.tar.gz
vcpkg-bf858077f29c54fecb053ac9843d37892279b770.zip
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmake/vcpkg_find_acquire_program.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cmake/vcpkg_find_acquire_program.cmake b/scripts/cmake/vcpkg_find_acquire_program.cmake
index 1acb8f749..c7fbe0f84 100644
--- a/scripts/cmake/vcpkg_find_acquire_program.cmake
+++ b/scripts/cmake/vcpkg_find_acquire_program.cmake
@@ -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()