Skip to content

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