Re: [CMake] adding program suffix

2013-03-14 Thread Chandan Choudhury
Dear All, I finally succeeded in installing gromacs 4.6.1 with prefix. Michael you were right, I need to set GMS_DEFAULT_SUFFIX to FALSE. Following is the command line option used : CMAKE_PREFIX_PATH=/soft/sudip/abc/apps/fftw-3.3.3 CC=icc cmake .. -DCMAKE_INSTALL_PREFIX=/soft/sudip/abc/apps/gromac

Re: [CMake] adding program suffix

2013-03-11 Thread Yngve Inntjore Levinsen
Hi, 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 binary_472_461 in this particular case. Otherwise yes, I believe using GMX_BINARY_SUFFIX should do the trick (had a quick look at the source). Generally for cmake proj

Re: [CMake] adding program suffix

2013-03-11 Thread Michael Wild
Looking at the sources, it seems that you also need to set GMX_DEFAULT_SUFFIX to FALSE in order for this to work. Michael On Mon, Mar 11, 2013 at 10:49 AM, Chandan Choudhury wrote: > Dear Micheal, Yngve Decker and Eric > > Thank for remarks. > > Micheal you are right that I want to append a suf

Re: [CMake] adding program suffix

2013-03-11 Thread Chandan Choudhury
Dear Micheal, Yngve Decker and Eric Thank for remarks. Micheal you are right that I want to append a suffix to every executable being installed. I already have an earlier version of gromacs installed, the suffix would help me to distinguish the between the two. While looking out for the string "

Re: [CMake] adding program suffix

2013-03-11 Thread Yngve Inntjore Levinsen
On 11/03/13 09:24, Eric Noulard wrote: > I think Chandan meant "globally" for all executables. > > That's the purpose of CMAKE_EXECUTABLE_SUFFIX > as already pointed out by Michael. > > see : cmake --help-variable "CMAKE_EXECUTABLE_SUFFIX" > > Now it doesn't seems to work for Chandan. > > I guess

Re: [CMake] adding program suffix

2013-03-11 Thread Michael Wild
That's not what Chandan wants to achieve. He wants to have a suffix appended to every executable being installed, so he can have different versions installed and select among them through the suffix. Think gcc-4.4, gcc-4.6 and gcc-4.7 being present on your system. On Mon, Mar 11, 2013 at 9:27 AM,

Re: [CMake] adding program suffix

2013-03-11 Thread J Decker
On Mon, Mar 11, 2013 at 1:24 AM, Michael Wild wrote: > > > > On Mon, Mar 11, 2013 at 9:20 AM, J Decker wrote: > >> >> >> On Sun, Mar 10, 2013 at 11:56 PM, Chandan Choudhury wrote: >> >>> >>> Dear cmake users, >>> >>> I am very new to cmake. I really find it interesting. I installed >>> gromacs (

Re: [CMake] adding program suffix

2013-03-11 Thread Michael Wild
On Mon, Mar 11, 2013 at 9:20 AM, J Decker wrote: > > > On Sun, Mar 10, 2013 at 11:56 PM, Chandan Choudhury wrote: > >> >> Dear cmake users, >> >> 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 >>

Re: [CMake] adding program suffix

2013-03-11 Thread Eric Noulard
2013/3/11 Yngve Inntjore Levinsen : > On 11/03/13 08:57, Chandan Choudhury wrote: > > > Hi, > > Do you mean how to add it to the CMakeLists.txt files? I sometimes use the > target property OUTPUT_NAME: > > add_executable(mybin ${sources}) > set_target_properties(mybin PROPERTIES OUTPUT_NAME "mybin

Re: [CMake] adding program suffix

2013-03-11 Thread J Decker
On Sun, Mar 10, 2013 at 11:56 PM, Chandan Choudhury wrote: > > Dear cmake users, > > 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. > > SET_TARGET_PRO

Re: [CMake] adding program suffix

2013-03-11 Thread Yngve Inntjore Levinsen
On 11/03/13 08:57, Chandan Choudhury wrote: > > > > -- > Chandan kumar Choudhury > NCL, Pune > INDIA > > > On Mon, Mar 11, 2013 at 1:19 PM, Michael Wild > wrote: > > On Mon, Mar 11, 2013 at 8:42 AM, Chandan Choudhury > mailto:iitd...@gmail.com>> wrote: > >

Re: [CMake] adding program suffix

2013-03-11 Thread Chandan Choudhury
-- Chandan kumar Choudhury NCL, Pune INDIA On Mon, Mar 11, 2013 at 1:19 PM, Michael Wild wrote: > On Mon, Mar 11, 2013 at 8:42 AM, Chandan Choudhury wrote: > >> Thanks Michael for your quick reply. >> >> I indeed tried the following command: >> CMAKE_PREFIX_PATH=/soft/sudip/abc/apps/fftw-3.3.3

Re: [CMake] adding program suffix

2013-03-11 Thread Michael Wild
On Mon, Mar 11, 2013 at 8:42 AM, Chandan Choudhury wrote: > Thanks Michael for your quick reply. > > I indeed tried the following command: > 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

Re: [CMake] adding program suffix

2013-03-11 Thread Chandan Choudhury
Thanks Michael for your quick reply. I indeed tried the following command: 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 && make -j 12 && make install But the suffix was not added to the exe

Re: [CMake] adding program suffix

2013-03-11 Thread Michael Wild
On Mon, Mar 11, 2013 at 7:56 AM, Chandan Choudhury wrote: > > Dear cmake users, > > 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. > > > Chandan > Just

[CMake] adding program suffix

2013-03-10 Thread Chandan Choudhury
Dear cmake users, 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. Chandan -- Chandan kumar Choudhury NCL, Pune INDIA -- Powered by www.kitware.com Visit o