[CMake] Using a pathless library in an imported target.

Benjamin Ballet bballet at ivsweb.com
Sun Aug 28 17:28:20 EDT 2016


Create an imported interface instead of a static library. Then you can set
either INTERFACE_COMPILE_OPTIONS or INTERFACE_LINK_LIBRARIES properties.

2016-08-27 21:39 GMT+02:00 Yaron Cohen-Tal <yaronct at 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 library
> 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énieur R&D

*ACTIVISU*
19, rue Klock - 92110 Clichy
*> Standard Tél* :  01 44 69 37 37
*>* www.activisu.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160828/5b0c297b/attachment.html>


More information about the CMake mailing list