Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jimwang118
Copy link
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

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.

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
2 participants