[CMake] Package shared libraries when linking

portolan michele.portolan at imag.fr
Mon Jul 11 06:38:26 EDT 2016


Hello,

I am building a C++14 projet in CMAKE for both Intel and ARM target, so 
I set up the cross-compilation and everything works fine build-wise.

Unfortunately my ARM target Linux kernel does not have a libstdc++.so.6 
so I cannot run the executable.....is it possible to have CMAKE 
statically include the libraries inside the compiled file, like ld does 
with the -static-libstdg++ command 
(http://stackoverflow.com/questions/27385995/shipping-libstdc-so-6-with-application) 
?

Thanks,


Michele



More information about the CMake mailing list