<div dir="ltr"><br><div class="gmail_extra"><br clear="all"><div><br>--<br>Chandan kumar Choudhury<br>NCL, Pune<br>INDIA</div>
<br><br><div class="gmail_quote">On Mon, Mar 11, 2013 at 1:19 PM, Michael Wild <span dir="ltr">&lt;<a href="mailto:themiwi@gmail.com" target="_blank">themiwi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div><div class="h5"><div class="gmail_quote">On Mon, Mar 11, 2013 at 8:42 AM, Chandan Choudhury <span dir="ltr">&lt;<a href="mailto:iitdckc@gmail.com" target="_blank">iitdckc@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Thanks Michael for your quick reply.<br><br></div>I indeed tried the following command:<br>



CMAKE_PREFIX_PATH=/soft/sudip/abc/apps/fftw-3.3.3 CC=icc cmake .. -DCMAKE_INSTALL_PREFIX=/soft/sudip/abc/apps/gromacs/461 -DCMAKE_EXECUTABLE_SUFFIX=_461 &amp;&amp; make -j 12 &amp;&amp; make install<br>

<br></div>But the suffix was not added to the executables. Might be I am missing something or doing silly.<br><br></div><div>Kindly have a look.<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div>



<br></div>Chandan<br></font></span></div><div class="gmail_extra"><div><br clear="all">

<div><br>--<br>Chandan kumar Choudhury<br>NCL, Pune<br>INDIA</div>
<br><br></div><div><div><div class="gmail_quote">On Mon, Mar 11, 2013 at 12:34 PM, Michael Wild <span dir="ltr">&lt;<a href="mailto:themiwi@gmail.com" target="_blank">themiwi@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>On Mon, Mar 11, 2013 at 7:56 AM, Chandan Choudhury <span dir="ltr">&lt;<a href="mailto:iitdckc@gmail.com" target="_blank">iitdckc@gmail.com</a>&gt;</span> wrote:<br>







<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br clear="all"><div>Dear cmake users,<br><br></div><div>I am very new to cmake. I really find it interesting. I installed gromacs (4.6.1) with it. One simple query regarding its usage is, how do I add program suffix to the executables created.<br>









<br><br></div><div>Chandan </div></div></blockquote></div><div><br>Just set the CMAKE_EXECUTABLE_SUFFIX variable in the CMake cache. Be careful that on Windows this should include the .exe suffix.<br><br>HTH<span><font color="#888888"><br>





<br>Michael<br>

</font></span></div></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div>That&#39;s a bit difficult to debug remotely. Here a few hints:<br><br>* Look into the CMakeCache.txt file and verify that the CMAKE_EXECUTABLE_SUFFIX is correct.<br></div></div></blockquote>

<div> </div><div>CMakeCache.txt contains the CMAKE_EXECUTABLE_SUFFIX entry as:<br></div><div><br>//No help, variable specified on the command line.<br>CMAKE_EXECUTABLE_SUFFIX:UNINITIALIZED=_461<br><br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div dir="ltr"><div class="gmail_extra">* Grep the sources for this variable, it might be that one of the CMakeLists.txt or *.cmake files overrides the cache entry.<span class=""><font color="#888888"><br></font></span></div>

</div></blockquote><div><br></div><div>There is no entry of  CMAKE_EXECUTABLE_SUFFIX in CMakeLists.txt.<br><br>Chandan<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><span class=""><font color="#888888">

<br>Michael<br></font></span></div></div>
</blockquote></div><br></div></div>