diff --git a/scripts/cmake/vcpkg_build_nmake.cmake b/scripts/cmake/vcpkg_build_nmake.cmake index ffc68d8d81..2312b324f9 100755 --- a/scripts/cmake/vcpkg_build_nmake.cmake +++ b/scripts/cmake/vcpkg_build_nmake.cmake @@ -71,7 +71,7 @@ function(vcpkg_build_nmake) set(project_subpath "") endif() - vcpkg_backup_env_variables(VARS _CL_ LINK) + vcpkg_backup_env_variables(VARS _CL_ _LINK_) cmake_path(NATIVE_PATH CURRENT_PACKAGES_DIR NORMALIZE install_dir_native) foreach(build_type IN ITEMS debug release) if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL build_type) @@ -160,7 +160,7 @@ function(vcpkg_build_nmake) ) endif() - vcpkg_restore_env_variables(VARS _CL_ LINK) + vcpkg_restore_env_variables(VARS _CL_ _LINK_) endif() endforeach() endfunction()