[CMake] Generator expression for "is in list"?
Sam Edwards
cfsworks at gmail.com
Sat Apr 7 17:35:05 EDT 2018
Hello list!
I'm trying to write a generator expression that only evaluates if my target
is directly (not transitively) linked into the consuming target. I figured
the easiest way to do that would be to test if the target's name appears in
$<TARGET_PROPERTY:LINK_LIBRARIES>, however I'm not seeing a generator
expression for substring or "string in list" tests.
What is the preferred way to accomplish this?
Best,
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180407/d03bc9b4/attachment-0001.html>
More information about the CMake
mailing list