Skip to content

Creating a library that uses vcpkg libraries but doesn't link to them #41833

Answered by Osyotr
grisharav asked this question in Q&A
Discussion options

You must be logged in to vote

Is this the recommended way to do this?

Yes, using exported targets is the recommended way to consume packages.
You might want to specify scope though. https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html#target-command-scope

Replies: 1 comment 2 replies

Comment options

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

@Osyotr
Comment options

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