[CMake] How to specify certain lib to be linked with before others? (QtOpenGL related)

michael kapelko kornerr at gmail.com
Mon Feb 8 22:52:51 EST 2010


Hello.
I'm building an app with Qt4 that uses Horde3D under Linux. This app
only works when -lHorde3D is specified *before* -lGL for linkage. By
default, CMake puts -lGL before -lHorde3D, probably because I link
with -lHorde3D as TARGET_LINK_LIBRARIES(test Horde3D) and -lGL is
added by Qt4 CMake module.
Is there any way to make -lHorde3D appear *before* -lGL?
Thanks.


More information about the CMake mailing list