|
list(APPEND z_vcpkg_find_package_backup_vars "ARGS") |
|
if(DEFINED ARGS) |
|
set(z_vcpkg_find_package_backup_ARGS "${ARGS}") |
|
else() |
|
set(z_vcpkg_find_package_backup_ARGS) |
|
endif() |
|
|
|
set(ARGS "${z_vcpkg_find_package_package_name};${z_vcpkg_find_package_ARGN}") |
does not correctly restore ARGS for chained/recursive find_package calls. It assumes function scope which doesn't work for find_package since it has to be a macro.
issue observed in #27279:
xcb-wrapper:
_find_package(X11 COMPONENTS Xau Xdmcp)
_find_package(${ARGS})
The bug above magically transformed ARGS = EXPAT instead XCB for some (not further traced) reason ;)
vcpkg/scripts/buildsystems/vcpkg.cmake
Lines 780 to 787 in c72cefb
does not correctly restore
ARGSfor chained/recursivefind_packagecalls. It assumesfunctionscope which doesn't work forfind_packagesince it has to be a macro.issue observed in #27279:
xcb-wrapper:
The bug above magically transformed
ARGS = EXPATinsteadXCBfor some (not further traced) reason ;)