Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
I understand why many folks would want that. I am suggesting that some many not, and can accept the tighter coupling for lower maintenance effort.
For the sake of argument, assume a user does not care if conan works or not. And/or they are willing to do away with standalone builds, or many they do something like:
Feel free to close with "out of scope" or something. |
Beta Was this translation helpful? Give feedback.
-
Totally agree. There is the And yeah, manifests are awesome! |
Beta Was this translation helpful? Give feedback.
-
First, thank you for implementing manifests, they are awesome.
Is your feature request related to a problem? Please describe.
I would like to declare the dependencies for a project in a single place. Today I need to do this in three places:
vcpkg.json
) needs to list the package names.CMakeLists.txt
file needs to have afind_package(...)
for each package, with a name that may not match the manifest name.CMakeLists.txt
file needs to add thetarget_link_libraries(....)
for each target, which again may not match the package name.It would be really neat to put all this information in a single place.
Proposed solution
Couple of ideas, maybe terrible ones:
vcpkg.json
manifest file:The CMake file would then use these as follows:
Describe alternatives you've considered
-# Obviously just maintaining the data in
vcpkg.json
andCMakeLists.txt
.-# Less magical, but still helpful, keep all the data in one place and use the
vcpkg
tool to print the relevant bits. For example this command:could produce the relevant CMake snippet:
That would at least reduce the maintenance burden (as one would just need to cut&paste the output), and may be automated by generating the snippet and including it into the CMake file.
Additional context
N/A
Beta Was this translation helpful? Give feedback.
All reactions