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

List:       cmake
Subject:    Re: [CMake] Using a pathless library in an imported target.
From:       Yaron Cohen-Tal <yaronct () gmail ! com>
Date:       2016-08-29 20:07:50
Message-ID: CADKOXrDwPKWdiu3ZmnqiARnL6Pd_RWN+jx_qrk1Ci7jndHx3rA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


That did the trick, thanx!

On Mon, Aug 29, 2016 at 12:28 AM, Benjamin Ballet <bballet@ivsweb.com>
wrote:

> Create an imported interface instead of a static library. Then you can se=
t
> either INTERFACE_COMPILE_OPTIONS or INTERFACE_LINK_LIBRARIES properties.
>
> 2016-08-27 21:39 GMT+02:00 Yaron Cohen-Tal <yaronct@gmail.com>:
>
>> Hi,
>>
>> I try to make an imported target out of OpenGL, and I have some
>> difficulty. Usually "OPENGL_gl_LIBRARY" is a full path (found with
>> "find_library"), but sometimes (on Windows) it's a pathless library (e.g=
.
>> "opengl32", set with the cmake command "set"). However an imported libra=
ry
>> requires the full path to the library. Any idea how to tackle it?
>>
>> Thanx,
>> Yaron
>>
>> --
>>
>> 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:
>> http://public.kitware.com/mailman/listinfo/cmake
>>
>
>
>
> --
> *Benjamin BALLET*
> Ing=C3=A9nieur R&D
>
> *ACTIVISU*
> 19, rue Klock - 92110 Clichy
> *> Standard T=C3=A9l* :  01 44 69 37 37
> *>* www.activisu.com
>

[Attachment #5 (text/html)]

<div dir="ltr"><div>That did the trick, thanx!<br></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 29, 2016 at 12:28 AM, \
Benjamin Ballet <span dir="ltr">&lt;<a href="mailto:bballet@ivsweb.com" \
target="_blank">bballet@ivsweb.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Create an imported interface instead of a \
static library. Then you can set either  INTERFACE_COMPILE_<wbr>OPTIONS or  \
INTERFACE_LINK_LIBRARIES properties.</div><div class="gmail_extra"><br><div \
class="gmail_quote">2016-08-27 21:39 GMT+02:00 Yaron Cohen-Tal <span dir="ltr">&lt;<a \
href="mailto:yaronct@gmail.com" \
target="_blank">yaronct@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
dir="ltr"><div><div><div>Hi,<br><br></div>I try to make an imported target out of \
OpenGL, and I have some difficulty. Usually &quot;OPENGL_gl_LIBRARY&quot; is a full \
path (found with &quot;find_library&quot;), but sometimes (on Windows) it&#39;s a \
pathless library (e.g. &quot;opengl32&quot;, set with the cmake command \
&quot;set&quot;). However an imported library requires the full path to the library. \
Any idea how to tackle it?<br><br></div>Thanx,<br></div>Yaron<br></div> <br>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="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" \
target="_blank">http://www.cmake.org/Wiki/CMak<wbr>e_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" \
target="_blank">http://cmake.org/cmake/help/su<wbr>pport.html</a><br> CMake \
Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" \
target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br> CMake \
Training Courses: <a href="http://cmake.org/cmake/help/training.html" \
rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.html</a><br>
 <br>
Visit other Kitware open-source projects at <a \
href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" \
target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" \
target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/cmake</a><span \
class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span \
class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div \
style="text-align:-webkit-auto;font-size:medium;font-family:Helvetica;word-wrap:break-word"><strong \
style="font-family:&#39;Times New Roman&#39;;font-size:16px"><b><font color="#333333" \
face="Verdana" size="1"><span style="font-size:7.5pt">Benjamin \
BALLET</span></font></b></strong><font face="Verdana" size="1"><span \
style="font-size:7.5pt"><br><font color="#333333">Ingénieur \
R&amp;D</font></span></font></div><div \
style="text-align:-webkit-auto;font-size:medium;font-family:Helvetica;word-wrap:break-word"><font \
face="Verdana" size="1"><span style="font-size:7.5pt"><br><strong><b><font \
color="#0e2a69" face="Verdana">ACTIVISU</font></b></strong></span></font></div><div \
style="text-align:-webkit-auto;font-size:medium;font-family:Helvetica;word-wrap:break-word"><font \
face="Verdana" size="1"><span style="font-size:7.5pt"><font color="#999999">19, rue \
Klock  - 92110 Clichy</font></span></font></div><div \
style="text-align:-webkit-auto;font-size:medium;font-family:Helvetica;word-wrap:break-word"><span \
style="text-align:-webkit-auto;font-size:16px;font-family:&#39;Times New \
Roman&#39;"><b><font color="#031f63" face="Arial" size="1"><span \
style="font-size:7.5pt">&gt; Standard Tél</span></font></b></span><font \
style="text-align:-webkit-auto" face="Verdana" size="1"><span \
style="font-size:7.5pt">  :   01 44 69 37 37</span></font><font face="Verdana" \
size="1"><span style="font-size:7.5pt"><font \
color="#999999"><br></font></span></font></div><div dir="ltr"><span \
style="font-size:16px;text-align:-webkit-auto;font-family:&#39;Times New \
Roman&#39;"><b><font color="#031f63" face="Arial" size="1"><span \
style="font-size:7.5pt">&gt;</span></font></b></span><font \
style="text-align:-webkit-auto" face="Verdana" size="1"><span \
style="font-size:7.5pt">  <a href="http://www.activisu.com/" style="color:purple" \
target="_blank">www.activisu.com</a></span></font></div></div></div></div></div></div></div></div></div></div></div>
 </font></span></div>
</blockquote></div><br></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:
http://public.kitware.com/mailman/listinfo/cmake



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

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