[CMake] setting LINKER_LANGUAGE still adds -lstdc++
Eric Noulard
eric.noulard at gmail.com
Tue Oct 9 02:07:47 EDT 2012
2012/10/9 James Bigler <jamesbigler at gmail.com>:
> In my project I need to manually link against a special version of
> libstdc++, so I manually set the target link language to C and then add my
> special library to the link line. On Linux this seems to work just fine,
> but on OSX it still add -lstdc++ to the link like. Here's my cmake code:
This doesn't seem to work on Linux either on my side, stdc++ gets in the link
line as well:
/usr/bin/cc -fPIC -shared -Wl,-soname,liba.so -o liba.so
CMakeFiles/a.dir/a.cpp.o -lstdc++ -lm
Did you try to fiddle with CMAKE_CXX_IMPLICIT_LINK_LIBRARIES ?
--
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
More information about the CMake
mailing list