CMake Usage flag for find_package commands #25383
Replies: 3 comments
-
Adding to this, I would also like if this feature worked well with Boost Recently the Boost behaviour changed. I have a package called GoldPKG which simply scrapes the vcpkg install find_* and target_* commands and adds them to CMake files and something like this would definetely be beneficial for my use case. |
Beta Was this translation helpful? Give feedback.
-
For now I have created PR #15243 which partially implements the features requested here. I'm counting on the community to implement the rest of the features in subsequent PRs 😉 At @pratikpc what issues have you found with Boost? |
Beta Was this translation helpful? Give feedback.
-
The output for Boost now is this
If we could instead have something relevant to the Boost package at hand For example, with Boost Array,
would be better output |
Beta Was this translation helpful? Give feedback.
-
Currently when I want to figure out how to include a library into my cmake build file, I do the following command
vcpkg install <port>
This gives me the usage instructions for the
find_package
command and thetarget_link_libraries
. What I'd like to be able to do is the following command:vcpkg usage <port>
This would skip all the checks for whether or not the package needs to be installed and just print the usage strings for the particular port.
An extension to this would be if you typed
vcpkg usage
in a directory that has a manifest file in it, then it would print out all the usage strings for the dependencies listed in the manifest file.A super extension would be to be able to write out these usage instructions to a simple text file for future reference.
vcpkg usage -o usage.txt
Beta Was this translation helpful? Give feedback.
All reactions