Skip to content

How to find package without change CMAKE_TOOLCHAIN_FILE to vcpkg.cmake? #40719

Answered by dg0yt
Hlongyu asked this question in Q&A
Discussion options

You must be logged in to vote

How to find package without change CMAKE_TOOLCHAIN_FILE to vcpkg.cmake?

Unsupported. vcpkg.cmake initializes variables (which could be done manually) and it applies wrappers to CMake packages (which isn't worth duplicating manually).

-- Checking for module 'xkbcommon-x11>=0.4.1'
--   Package 'xkbcommon-x11' not found

I don't think this is related to the vcpkg toolchain. vcpkg.cmake appears in the CMake call stack because it overloads find_package, but the failing check is in the Qt package files.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Hlongyu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants