Skip to content

Fixed VCPKG_LOAD_VCVARS_ENV option to be used to disable vcvars loading#1511

Open
jimwang118 wants to merge 3 commits into
microsoft:mainfrom
jimwang118:fix-no-using-vcvars
Open

Fixed VCPKG_LOAD_VCVARS_ENV option to be used to disable vcvars loading#1511
jimwang118 wants to merge 3 commits into
microsoft:mainfrom
jimwang118:fix-no-using-vcvars

Conversation

@jimwang118
Copy link
Copy Markdown
Contributor

Fixes microsoft/vcpkg#40480.

When setting VCPKG_LOAD_VCVARS_ENV=OFF in a triplet, vcpkg/CMake complains that it can't find a compiler.

@huangqinjin
Copy link
Copy Markdown
Contributor

Without this fix, currently one need

set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE ${VCPKG_ROOT_DIR}/scripts/toolchains/windows.cmake)

in a Windows triplet to disable vcvars loading.

@vicroms
Copy link
Copy Markdown
Member

vicroms commented Jan 27, 2025

/azp run

@vicroms vicroms closed this Jan 28, 2025
@vicroms vicroms reopened this Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The VCPKG_LOAD_VCVARS_ENV option cannot be used to disable vcvars loading

3 participants