[vcpkg_configure_make] Fix environment variable _LINK_ (#20652)

This commit is contained in:
Jack·Boos·Yu 2021-10-12 11:41:51 +08:00 committed by GitHub
parent aacceff7c5
commit 143cfa363c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -783,9 +783,9 @@ function(vcpkg_configure_make)
set(ENV{LDFLAGS} "-avoid-version $ENV{LDFLAGS}")
endif()
if(LINK_ENV_${_VAR_SUFFIX})
if(LINK_ENV_${_buildtype})
set(_LINK_CONFIG_BACKUP "$ENV{_LINK_}")
set(ENV{_LINK_} "${LINK_ENV_${_VAR_SUFFIX}}")
set(ENV{_LINK_} "${LINK_ENV_${_buildtype}}")
endif()
set(ENV{PKG_CONFIG} "${PKGCONFIG}")