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

2016-08-29 Thread Yaron Cohen-Tal
That did the trick, thanx! On Mon, Aug 29, 2016 at 12:28 AM, Benjamin Ballet wrote: > 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 : > >> Hi, >>

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

2016-08-28 Thread Benjamin Ballet via CMake
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 : > Hi, > > I try to make an imported target out of OpenGL, and I have some > difficulty. Usually "OPENGL_

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

2016-08-27 Thread Yaron Cohen-Tal
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 f