Re: [CMake] Specify the link command in CMake

2011-09-19 Thread Michael Hertling
On 09/13/2011 11:01 AM, Federico Carminati wrote: > Hello Eric, >sorry for not having changed the subject, I realize it only now. Thanks > for your answer. I am trying to use clang / clang++. This works if I do > > cmake $MY_SOURCE_DIRECTORY -DCMAKE_C_COMPILER=clang > -DCMAKE_CXX_COMPILER

Re: [CMake] Specify the link command in CMake

2011-09-13 Thread Federico Carminati
Hello Eric, sorry for not having changed the subject, I realize it only now. Thanks for your answer. I am trying to use clang / clang++. This works if I do cmake $MY_SOURCE_DIRECTORY -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ however CMake decides to use clang / clang++ as lin

[CMake] Specify the link command in CMake

2011-09-13 Thread Eric Noulard
2011/9/13 Federico Carminati : > Dear All, >is there a way to specify the link command in CMake? If I specify > > export LD=/usr/bin/ld ; cmake $MY_SOURCE_DIRECTORY > > it is not taken and if I set I dont' know if LD env var is supposed to be used at all. > cmake $MY_SOURCE_DIRECTORY \ > -DC