[CMake] controlling linker
Eric Noulard
eric.noulard at gmail.com
Thu Jul 29 11:59:15 EDT 2010
2010/7/29 j s <j.s4403 at gmail.com>:
> I'm linking C++ static libraries against a c main. On linux, cmake 2.6
> tries to use gcc for the final link. cmake 2.8.1 uses g++ for the final
> link. How do I tell cmake 2.6 to use a c++ linker?
May be setting the LINKER_LANGUAGE
property on the target?
see
http://www.cmake.org/cmake/help/cmake2.6docs.html#prop_tgt:LINKER_LANGUAGE
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list