[vcpkg|scripts] correctly restore env vars (#22313)

This commit is contained in:
Alexander Neumann 2022-01-05 05:00:21 +01:00 committed by GitHub
parent f73ca51564
commit f5981dabf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,6 +216,8 @@ function(vcpkg_build_make)
set(ENV{PATH} "${env_backup_path}")
endif()
endif()
vcpkg_restore_env_variables(VARS LIB LIBPATH LIBRARY_PATH)
endforeach()
if (arg_ENABLE_INSTALL)