Vcpkg: The "vcpkg env" command fails with a CMake Error

Created on 7 Feb 2020  路  1Comment  路  Source: microsoft/vcpkg

The "vcpkg env" command fails with the following error.

CMake Error: Error processing file: D:/vcpkg/scripts/get_triplet_environment.cmake

I see that scripts/get_triplet_environment.cmake was recently added in a pull request but there is no such file in master.

Environment

  • OS: Windows 10 Pro 1909 build 18363.628 64-bit
  • Compiler: Visual Studio 2019 Community

To Reproduce

  1. Sync your fork to upstream.
  2. ./vcpkg env
  3. See error

Expected behavior
This should not happen. It should create a shell with the expected vcpkg enviornment.

Most helpful comment

Curious. I rebuilt vcpkg by running bootstrap-vcpkg.bat again and now the vcpkg env command works as expected.

And I just figured out what is going on. The file scripts/get_triplet_environment.cmake was recently removed, not added. My old vcpkg.exe still referenced it.

>All comments

Curious. I rebuilt vcpkg by running bootstrap-vcpkg.bat again and now the vcpkg env command works as expected.

And I just figured out what is going on. The file scripts/get_triplet_environment.cmake was recently removed, not added. My old vcpkg.exe still referenced it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ThinkalVB picture ThinkalVB  路  3Comments

angelmixu picture angelmixu  路  3Comments

grandprixgp picture grandprixgp  路  3Comments

cjvaijo picture cjvaijo  路  3Comments

jack17529 picture jack17529  路  3Comments