Closed mrexodia closed 3 years ago
Hi I've created a new branch called "manifest" with support for vcpkg manifest mode. I chose (& vendored) nlohmann/json for vcpkg.json generation. I think the next step is to also support versions and features for each dependency:
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
"name": "my-application",
"version": "0.15.2",
"dependencies": [
"boost-system",
{
"name": "cpprestsdk",
"default-features": false
},
"libxml2",
"yajl"
]
}
Awesome, I’ll take a look! Maybe open a PR so it’s easier to review?
PMM is awfully complicated and does not work properly. Replace it with modern vcpkg.
Should generate
vcpkg.json
(take care of the vcpkg identifiers not allowing capital letters or underscores):And (right after the
project
):See: https://github.com/build-cpp/vcpkg_template/tree/simplified-vscode. It also needs some kind of handling for subprojects (that scenario is not supported by vcpkg according to one of the authors) and it would be best if you get error messages that certain packages need to be specified in the root project for it to work.