Skip to content

Recommended way to expose port compile options to make #39137

Answered by Neumann-A
sketch34 asked this question in Q&A
Discussion options

You must be logged in to vote

I might want to have a look at #33198. The general way is to call vcpkg_get_cmake_vars (from port vcpkg-cmake-get-vars) which creates a bunch of files which can be included to get a bunch of variables from cmake. You then can use those variables to correctly setup your environment.

compile options to non-cmake builds to use pkg-config

the non cmake build should already use pkg-config. If everything else has pc files than it is just a matter of setting up pkg-config paths. as done by all ports using pkg-config. But there is also the port vcpkg-pkgconfig-get-modules if you need the info in the portfile itself.

Maybe sniff required values from the cmake cache or build.ninja for each port?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sketch34
Comment options

@Neumann-A
Comment options

Answer selected by sketch34
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