<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hello Johny,
<div> I am afraid not… here is what I get if I specify the full path</div>
<div><br>
</div>
<div>/usr/bin/ld</div>
<div><br>
</div>
<div>this is *all* the command, which of course fails. best, <br>
<div>
<div><br>
Federico Carminati<br>
CERN-PH <br>
1211 Geneva 23<br>
Switzerland<br>
Tel: +41 22 76 74959<br>
Fax: +41 22 76 68505<br>
Mobile: +41 76 487 4843<br>
</div>
</div>
<br>
<div>
<div>On 13 Sep 2011, at 09:57, Johny Jose wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Hey Federico,
<div><br>
</div>
<div>I believe you need to mention the absolute path of the ld executable in the value for the CMAKE_C_LINK_EXECUTABLE and the CMAKE_CXX_LINK_EXECUTABLE.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Johny</div>
</span>
<div id="WISESTAMP_SIG_2274">
<div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px; ">
<div style="text-align: -webkit-auto; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; "><img src="http://p1.wisestamp.com/pixel.png?p=chrome&v=2.7.2.0&t=1315900640341&u=82ea4ab80c4ca423" width="1" height="1"></span></div>
</div>
</div>
</div>
<br>
<br>
<div class="gmail_quote">On 13 September 2011 13:14, Federico Carminati <span dir="ltr">
<<a href="mailto:Federico.Carminati@cern.ch">Federico.Carminati@cern.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear All,<br>
is there a way to specify the link command in CMake? If I specify<br>
<br>
export LD=/usr/bin/ld ; cmake $MY_SOURCE_DIRECTORY<br>
<br>
it is not taken and if I set<br>
<br>
cmake $MY_SOURCE_DIRECTORY \<br>
-DCMAKE_C_LINK_EXECUTABLE=ld \<br>
-DCMAKE_CXX_LINK_EXECUTABLE=ld<br>
<br>
what I observe is that the "entire" link command is replaced by "just" ld. Am I missing something?<br>
<br>
[/Users/fca] cmake -version<br>
cmake version 2.8.4.20110216-gaec6<br>
<br>
Thanks a lot in advance for the help. Best,<br>
<br>
Federico Carminati<br>
CERN-PH<br>
1211 Geneva 23<br>
Switzerland<br>
Tel: +41 22 76 74959<br>
Fax: +41 22 76 68505<br>
Mobile: +41 76 487 4843<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">
http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote>
</div>
<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>