[CMake] Link order (Ubuntu)

scrgiorgio scrgiorgio at gmail.com
Tue Nov 6 08:24:37 EST 2018


Thanks for the help,

trying this (or any combination):

target_link_libraries(MyExe B) 
target_link_libraries(MyExe A )
target_link_libraries(MyExe ImpLib)

I get this order:

'B;...whatever...;A;ImpLib"

and the last past is causing the problem. Apparently there is no way to
change the right part (-Wl,--start-group -Wl,--end-groun sometimes work,
sometimes not).
Any advice?




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


More information about the CMake mailing list