2010/7/29 j s <j.s4...@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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to