[CMake] Link order problem (Ubuntu)

scrgiorgio scrgiorgio at gmail.com
Mon Nov 5 19:47:59 EST 2018


i have the following CMakeList.txt:



the CMake generated link order is (g++ -o .... ):



But in this way A cannot find symbols from ImpLib (at least using g++).

The right order is



Is it doable? 

I tried:

 

but then B will link ImpLib

I tried:



but sometimes it does not work.

is it doable? Can I force the right order?





--
Sent from: http://cmake.3232098.n2.nabble.com/


More information about the CMake mailing list