VCPKG_MANIFEST_MODE can not be set to TRUE after adding a vcpkg.json file #12208
Labels
category:vcpkg-bug
The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
info:manifests
This PR or Issue pertains to the Manifests feature
If one has an existing cmake cache and adds a vcpkg.json manifest file and then set VCPKG_MANIFEST_MODE to true
the manifest file will not be found since the _VCPKG_MANIFEST_DIR internal cache variable was already set and will not be updated. Hence the manifest file it not found and an error is printed
the cache variable it set here
vcpkg/scripts/buildsystems/vcpkg.cmake
Line 27 in 9ddf284
and this check prevents it from being updated
vcpkg/scripts/buildsystems/vcpkg.cmake
Line 9 in 9ddf284
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The newly added manifest file should be found
Or an error saying the one has to clear the cache to make it work
Failure logs
FYI @strega-nil
The text was updated successfully, but these errors were encountered: