<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 "SUFFIX" 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 && make -j 12 && 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"><<a href="mailto:yngve.levinsen@gmail.com" target="_blank">yngve.levinsen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 11/03/13 09:24, Eric Noulard wrote:<br>
> I think Chandan meant "globally" for all executables.<br>
><br>
> That's the purpose of CMAKE_EXECUTABLE_SUFFIX<br>
> as already pointed out by Michael.<br>
><br>
> see : cmake --help-variable "CMAKE_EXECUTABLE_SUFFIX"<br>
><br>
> Now it doesn't seems to work for Chandan.<br>
><br>
> I guess the variable is forcibly written by "CMakeGenericSystem.cmake"<br>
> during early CMake startup.<br>
> So that you cannot overwrite its value on the command line.<br>
> try to add "variable_watch(CMAKE_EXECUTABLE_SUFFIX)" at the very top<br>
> of main CMakeLists.txt<br>
><br>
> You may try to do that from within the CMakeLists.txt after the<br>
> "project(...)" 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 class="HOEnZb"><div class="h5">--<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>