Skip to content

How to check the VCPKG_LIBRARY_LINKAGE of the port in project cmake file? #37193

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

You must be logged in to vote

You can check if a target exists and link it accordingly:
$<TARGET_NAME_IF_EXISTS:tgt> or and if(TARGET <targetname>)

Replies: 2 comments 2 replies

Comment options

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

@Neumann-A
Comment options

Answer selected by vipcxj
Comment options

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