<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I don'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<br>
<br>
<div class="moz-cite-prefix">On 11/03/13 10:49, Chandan Choudhury
wrote:<br>
</div>
<blockquote
cite="mid:CAHESojw+EcUobkqSb+ViBw7DON4PJZNd=LfaxZEdXrme0Y2kmA@mail.gmail.com"
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 "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
moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
</body>
</html>