Vcpkg has a manifest mode where one specifies a vcpkg.json file with all the packages required for a project. I would like to temporarily disable this feature and instead use vcpkg install mypackage
directly. However, if a vcpkg.json file is present in your root directory vcpkg automatically switches to manifest mode, so when I try to run vcpkg install
I get:
error: In manifest mode,
vcpkg install
does not support individual package arguments. To install additional packages, edit vcpkg.json and then runvcpkg install
without any package arguments.
To get around this I instead tried this:
export VCPKG_MANIFEST_MODE=OFF
./vcpkg install mypackage
But I still get the same error. Is there a way to disable manifest mode? The only way I've found so far is to delete the vcpkg.json file temporarily, but this is rather cumbersome.