[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] LOCATION target property, generator expressions
From:       Hendrik Greving <hendrik.greving.smi () gmail ! com>
Date:       2018-09-26 14:23:50
Message-ID: CABVVhiiwgnMHgAFLvgHNM59poobnzsmmgHdG8YpNv3BswMzEqg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.
Thanks in advance

On Tue, Sep 25, 2018, 10:45 PM Marc CHEVRIER <marc.chevrier@gmail.com>
wrote:

> LINK_FLAGS does not support expressions.
> However, property LINK_OPTIONS (and INTERFACE counterpart) support
> generator expressions. These properties are new for version 3.13 which wi=
ll
> be available soon (probably next month).
> Le mer. 26 sept. 2018 =C3=A0 05:21, Hendrik Greving <
> hendrik.greving.smi@gmail.com> a =C3=A9crit :
>
>> 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, bu=
t
>> 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 othe=
r
>> cases file(GENERATE.. writing a set(var TARGET_FILE..) into a file, and
>> reading the file to obtain 'var' worked. Thanks in advance!
>> --
>>
>> Powered by www.kitware.com
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Kitware offers various services to support the CMake community. For more
>> information on each offering, please visit:
>>
>> CMake Support: http://cmake.org/cmake/help/support.html
>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> https://cmake.org/mailman/listinfo/cmake
>>
>

[Attachment #5 (text/html)]

<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&#39;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 &lt;<a \
href="mailto:marc.chevrier@gmail.com">marc.chevrier@gmail.com</a>&gt; \
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 &lt;<a \
href="mailto:hendrik.greving.smi@gmail.com" target="_blank" \
rel="noreferrer">hendrik.greving.smi@gmail.com</a>&gt; 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&#39;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 &#39;var&#39; 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>



-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic