On 11/26/2010 06:12 PM, ext Gabriel M. Beddingfield wrote:
I don't think that's what CMAKE_EXE_LINKER_FLAGS is for.
It's for setting /flags/ -- not for specifying which link
libraries you're using.  It's supposed to hold stuff like "-
L/usr/local/lib -L. -L.." or something.

You're supposed to declare linking like this:

   ADD_EXECUTABLE( fala_pixelchanged
     ...list of sources...
     )

   TARGET_LINK_LIBRARIES( fala_pixelchanged
     -lX11 -lXtst -lXi
     )
Thanks. I thought this might be the case, but cmake's documentation is let's say somewhat terse at places.
--
Pertti

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to