<div dir="ltr"><div><div><div>Dear All,<br><br></div>I finally succeeded in installing gromacs 4.6.1 with prefix. <br></div>Michael you were right, I need to set GMS_DEFAULT_SUFFIX to FALSE. Following is the command line option used :<br>

CMAKE_PREFIX_PATH=/soft/sudip/abc/apps/fftw-3.3.3 CC=icc cmake .. -DCMAKE_INSTALL_PREFIX=/soft/sudip/abc/apps/gromacs/461 -DGMX_BINARY_SUFFIX=_4.6.1 -DGMX_LIBS_SUFFIX=_4.6.1 -DGMX_DEFAULT_SUFFIX=OFF &amp;&amp; make -j 12 &amp;&amp; make install<br>

<br></div>Thank you for your responses.<br><br>Chandan<br><div><div><br></div></div></div><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 3:30 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    <br>
    I don&#39;t think the CMAKE_EXECUTABLE_SUFFIX will have any more effect
    for you this time, and if it did you would probably get<br>
    <br>
    binary_472_461 in this particular case.<br>
    <br>
    Otherwise yes, I believe using GMX_BINARY_SUFFIX should do the trick
    (had a quick look at the source).<br>
    <br>
    Generally for cmake projects you can check which options are
    available using either the graphical interface, or using ccmake
    after you have configured:<br>
    <br>
    cmake ../<br>
    ccmake .<br>
    <br>
    Cheers,<br>
    Yngve<div><div class="h5"><br>
    <br>
    <div>On 11/03/13 10:49, Chandan Choudhury
      wrote:<br>
    </div>
    <blockquote type="cite">
      <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<br>
          <br>
        </div>
        Chandan<br>
        <div>
          <div><br>
          </div>
        </div>
      </div>
      <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 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:0 0 0 .8ex;border-left:1px #ccc solid;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>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>--

Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>

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>

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>

Follow this link to subscribe/unsubscribe:
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
    </blockquote>
    <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>