title: Is it possible to change library linking order in cmake
body: <p>When I execute <code>make</code>, it executes something like <code>gcc blah.o -lXtst -lX11</code> and that causes an error like <code>undefined reference to XTestFakeButtonEvent</code>. I've discovered plenty answers and all of them says that it's because of wrong linking order. It's easy to change order when using plain <code>gcc</code>, but what about <code>make</code>?</p>