[vcpkg-tool][world rebuild] Instrument vcpkg.cmake to check for optional dependencies#27606
[vcpkg-tool][world rebuild] Instrument vcpkg.cmake to check for optional dependencies#27606Thomas1664 wants to merge 5 commits intomicrosoft:masterfrom
Conversation
|
Did you test this locally, with non-trivial ports/projects? I think this is too simple with regard to recursive |
With the limited resources of a Codespace I tested ports like sdl2 or OSG successfully. Can you recommend some ports that fit in 20 GB of storage and build in a reasonable amount of time? |
|
and you cannot deal with that correctly. The same goes for |
Since Even if some ports break I think the majority of ports is simple enough to work with this. We can set a flag to disable this check for some complex ports like qt. |
What about recursive and nested find_package calls ?
user code also interacts with |
|
My new approach based on @Neumann-A's suggestions:
Only enable this check if |
|
I believe this PR is replaced by #27950 . Thanks for your contribution to vcpkg! |
Describe the pull request
What does your PR fix?
Fixes [vcpkg-tool] Post build lint: Check for missing optional dependencies #27590See the tagged issue for more information.
This PR adds a check to the vcpkg override of
find_packageto detect if it is called withoutREQUIREDand not explicitly handled usingCMAKE_DISABLE_FIND_PACKAGE_orCMAKE_REQUIRE_FIND_PACKAGE_.It needs a PR on the tool as well.