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.
This commit is contained in:
Sander Cox 2023-07-21 17:56:51 +02:00 committed by GitHub
parent 2d6f26b318
commit f41244d1b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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