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