<div dir="ltr">Looking at the sources, it seems that you also need to set GMX_DEFAULT_SUFFIX to FALSE in order for this to work.<br><br>Michael<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 11, 2013 at 10:49 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><div><div>Dear Micheal, Yngve Decker and Eric<br><br></div>Thank for remarks.<br>

<br></div>Micheal you are right that I want to append a suffix to every executable being installed. <br></div><div>

I already have an earlier version of gromacs installed, the suffix would help me to distinguish the between the two.<br></div><div><br></div>While looking out for the string &quot;SUFFIX&quot; in the CMakeCache.txt, I encountered a phrase as<br>



<br>//Suffix for GROMACS binaries (default: _d for double, _mpi for<br>// MPI, _mpi_d for MPI and double).<br>GMX_BINARY_SUFFIX:STRING=<br><br></div>What I can understand is if I use the following command it might serve the purpose.<br>



<br>CMAKE_PREFIX_PATH=/soft/sudip/abc/apps/fftw-3.3.3 <b>GMX_BINARY_SUFFIX=_472</b> 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<span class=""><font color="#888888"><br>



<br></font></span></div><span class=""><font color="#888888">Chandan<br><div><div><br></div></div></font></span></div><div class="gmail_extra"><div class="im"><br clear="all"><div><br>--<br>Chandan kumar Choudhury<br>NCL, Pune<br>

INDIA</div>
<br><br></div><div><div class="h5"><div class="gmail_quote">On Mon, Mar 11, 2013 at 2:26 PM, Yngve Inntjore Levinsen <span dir="ltr">&lt;<a href="mailto:yngve.levinsen@gmail.com" target="_blank">yngve.levinsen@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>
On 11/03/13 09:24, Eric Noulard wrote:<br>
&gt; I think Chandan meant &quot;globally&quot; for all executables.<br>
&gt;<br>
&gt; That&#39;s the purpose of CMAKE_EXECUTABLE_SUFFIX<br>
&gt; as already pointed  out by Michael.<br>
&gt;<br>
&gt; see : cmake --help-variable &quot;CMAKE_EXECUTABLE_SUFFIX&quot;<br>
&gt;<br>
&gt; Now it doesn&#39;t seems to work for Chandan.<br>
&gt;<br>
&gt; I guess the variable is forcibly written by &quot;CMakeGenericSystem.cmake&quot;<br>
&gt; during early CMake startup.<br>
&gt; So that you cannot overwrite its value on the command line.<br>
&gt; try to add &quot;variable_watch(CMAKE_EXECUTABLE_SUFFIX)&quot; at the very top<br>
&gt; of main CMakeLists.txt<br>
&gt;<br>
&gt; You may try to do that from within the CMakeLists.txt after the<br>
&gt; &quot;project(...)&quot; statement (or enable_language)<br>
<br>
</div>Hi,<br>
<br>
Yes I tried to set the same variable on my machine but does not work<br>
here neither (Linux). Perhaps this only works for platforms where this<br>
variable is traditionally non-empty?<br>
<br>
As also Michael pointed out, this would not really be a solution for<br>
non-developers of a software for sure (and I now see Chandan said it was<br>
a question regarding usage).<br>
<br>
Cheers,<br>
Yngve<br>
<div><div>--<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>
</div></div></blockquote></div><br></div></div></div>
<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></div></div>