From f41244d1b4b1cd8472cecf6c61fe5d6f4b2deea8 Mon Sep 17 00:00:00 2001 From: Sander Cox Date: Fri, 21 Jul 2023 17:56:51 +0200 Subject: [PATCH] fix: take component from runtime only #32560 (#32683) Only take the COMPONENT part for the runtime settings like we already do for the DESTINATION component. The install local dependencies should only need to be run for RUNTIME components anyway. --- scripts/buildsystems/vcpkg.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake index 87e31f7f2d..b1e542f2e7 100644 --- a/scripts/buildsystems/vcpkg.cmake +++ b/scripts/buildsystems/vcpkg.cmake @@ -744,7 +744,7 @@ if(X_VCPKG_APPLOCAL_DEPS_INSTALL) if(last_command STREQUAL "DESTINATION" AND (modifier STREQUAL "" OR modifier STREQUAL "RUNTIME")) set(destination "${arg}") endif() - if(last_command STREQUAL "COMPONENT") + if(last_command STREQUAL "COMPONENT" AND (modifier STREQUAL "" OR modifier STREQUAL "RUNTIME")) set(component_param "COMPONENT" "${arg}") endif() endforeach()