<div dir="auto">Is there any way before 3.13 to achieve what I need? Right now we modify LINK_FLAGS based on something that is computed with values from LOCATION. For CMP0026, I'd like to get rid of LOCATION. As pointed out earlier, unclear how this would work e.g. by using file(GENERATE.. in this case.<div dir="auto">Thanks in advance</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 25, 2018, 10:45 PM Marc CHEVRIER <<a href="mailto:marc.chevrier@gmail.com">marc.chevrier@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">LINK_FLAGS does not support expressions.<br>However, property LINK_OPTIONS (and INTERFACE counterpart) support generator expressions. These properties are new for version 3.13 which will be available soon (probably next month).<br><div class="gmail_quote"><div dir="ltr">Le mer. 26 sept. 2018 à 05:21, Hendrik Greving <<a href="mailto:hendrik.greving.smi@gmail.com" target="_blank" rel="noreferrer">hendrik.greving.smi@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>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!</div></div>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>
</blockquote></div>