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

Yaron Cohen-Tal yaronct at gmail.com
Sat Aug 27 15:39:07 EDT 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160827/7ba56795/attachment.html>


More information about the CMake mailing list