diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake index 7e6d5408a6..08d0c8d200 100644 --- a/scripts/buildsystems/vcpkg.cmake +++ b/scripts/buildsystems/vcpkg.cmake @@ -459,10 +459,10 @@ function(x_vcpkg_install_local_dependencies) cmake_parse_arguments(__VCPKG_APPINSTALL "" "DESTINATION" "TARGETS" ${ARGN}) foreach(TARGET ${__VCPKG_APPINSTALL_TARGETS}) - _install(CODE "message(\"-- Installing app dependencies for ${TARGET}...\") + install(CODE "message(\"-- Installing app dependencies for ${TARGET}...\") execute_process(COMMAND powershell -noprofile -executionpolicy Bypass -file \"${_VCPKG_TOOLCHAIN_DIR}/msbuild/applocal.ps1\" - -targetBinary \"${__VCPKG_APPINSTALL_DESTINATION}/$\" + -targetBinary \"\${CMAKE_INSTALL_PREFIX}/${__VCPKG_APPINSTALL_DESTINATION}/$\" -installedDir \"${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}$<$:/debug>/bin\" -OutVariable out)") endforeach()