[CMake] LOCATION target property, generator expressions

Hendrik Greving hendrik.greving.smi at gmail.com
Tue Sep 25 23:20:43 EDT 2018


Hello,

our cmake setup is using LOCATION property for two targets to compute a
relative path from these two, and adds this to LINK_FLAGS (for rpath, but
irrelevant in this context). In order to update our cmake w.r.t. CMP0026, I
don't know how to get LINK_FLAGS consume a generator expression. In other
cases file(GENERATE.. writing a set(var TARGET_FILE..) into a file, and
reading the file to obtain 'var' worked. Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180925/41a3cb75/attachment.html>


More information about the CMake mailing list