[CMake] set custom linker in linux

Yngve Inntjore Levinsen yngve.levinsen at gmail.com
Thu Jun 23 09:44:50 EDT 2011


 Torsdag 23 juni 2011 13.34.24 skrev gekso :
> Hello! Please, help to to set custom linker. I use gcc1/g++1 instead
> of basic gcc/g++ on system.
> I've tried to export CC/CXX, but I need to change linker from "ld" to
> "g++1". Is it possible?
> _______________________________________________
> 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
> 

Hi,

Try:
set(CMAKE_LINKER g++1)

I think it should work (or something similar), but haven't tested..

Cheers,
Yngve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110623/aec82f0d/attachment.htm>


More information about the CMake mailing list