[CMake] adding program suffix

2013-03-11 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

Re: [CMake] adding program suffix

2013-03-11 Thread Michael Wild
On Mon, Mar 11, 2013 at 7:56 AM, Chandan Choudhury iitd...@gmail.comwrote: 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

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

Re: [CMake] adding program suffix

2013-03-11 Thread Michael Wild
On Mon, Mar 11, 2013 at 8:42 AM, Chandan Choudhury iitd...@gmail.comwrote: 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

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 them...@gmail.com wrote: On Mon, Mar 11, 2013 at 8:42 AM, Chandan Choudhury iitd...@gmail.comwrote: Thanks Michael for your quick reply. I indeed tried the following command:

Re: [CMake] How to set Overwrite or no over write in install(FILES ....)?

2013-03-11 Thread Petr Kmoch
Hi Jupiter, regarding your second question: you'd need to escape the nested quotes. Also, I'm not sure if 'not exists' can be given in lowercase. However, I'd strongly suggest using install(SCRIPT ...) instead of install(CODE ...), precisely because of the escaping issues. Petr On Mon, Mar 11,

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 them...@gmail.com mailto:them...@gmail.com wrote: On Mon, Mar 11, 2013 at 8:42 AM, Chandan Choudhury iitd...@gmail.com

Re: [CMake] adding program suffix

2013-03-11 Thread J Decker
On Sun, Mar 10, 2013 at 11:56 PM, Chandan Choudhury iitd...@gmail.comwrote: 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.

Re: [CMake] adding program suffix

2013-03-11 Thread Eric Noulard
2013/3/11 Yngve Inntjore Levinsen yngve.levin...@gmail.com: 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

Re: [CMake] adding program suffix

2013-03-11 Thread Michael Wild
On Mon, Mar 11, 2013 at 9:20 AM, J Decker d3c...@gmail.com wrote: On Sun, Mar 10, 2013 at 11:56 PM, Chandan Choudhury iitd...@gmail.comwrote: 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

Re: [CMake] adding program suffix

2013-03-11 Thread J Decker
On Mon, Mar 11, 2013 at 1:24 AM, Michael Wild them...@gmail.com wrote: On Mon, Mar 11, 2013 at 9:20 AM, J Decker d3c...@gmail.com wrote: On Sun, Mar 10, 2013 at 11:56 PM, Chandan Choudhury iitd...@gmail.comwrote: Dear cmake users, I am very new to cmake. I really find it interesting.

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

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 the variable

[CMake] cmake and Windows CE6 problem

2013-03-11 Thread mikko . kiilholma
Hi, I just started to work with cmake. My fist task is to build an application for Windows CE6. I have a sdk from device manufacturer (Beckhoff) and I am able to build my application in Visual Studio 2005 and run it on the device. Now I must be able to build it with cmake. I found out that I need

Re: [CMake] How to set Overwrite or no over write in install(FILES ....)?

2013-03-11 Thread hce
Thanks Petr. I changed to use SCRIPT, it still got syntax error either. Please correct me what is wrong in the following statement. install(SCRIPT if (not exists ${destination}/myfile.txt) install(FILES ${source}/myfile.txt DESTINATION ${destination}) endif() ) Also, even the

Re: [CMake] How to set Overwrite or no over write in install(FILES ....)?

2013-03-11 Thread Petr Kmoch
install(SCRIPT ...) takes a name of a file as an argument, and executes the CMake code in the file at installation time. That's why you don't have to care about escaping there. How this works is that the code in the file (or the code you give to install(CODE ...)) is injected into

Re: [CMake] How to set Overwrite or no over write in install(FILES ....)?

2013-03-11 Thread Andreas Stahl
Am 11.03.2013 um 06:14 schrieb hce: Hi, I have following statement to install a file from source directory to destination. It got a conflict error if the destination has already had the file. Hello Jupiter, can you post the error message here? I wasn't aware that install(FILES ...) did

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 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 iitd...@gmail.comwrote: Dear Micheal, Yngve Decker and Eric Thank for remarks. Micheal you are right that I want to

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

Re: [CMake] How to set Overwrite or no over write in install(FILES ....)?

2013-03-11 Thread hce
Andreas Stahl wrote Hello Jupiter, can you post the error message here? I wasn't aware that install(FILES ...) did any checking besides comparing the dates and overwriting if the file to be installed is newer. Also, you misunderstood what Petr meant. You need to escape the quotes in the

Re: [CMake] ExternalProject and hardwired src directory

2013-03-11 Thread Luc J. Bourhis
Ansis Māliņš wrote You can override parts of PREFIX with these TMP_DIR = prefix /tmp STAMP_DIR= prefix /src/ name -stamp DOWNLOAD_DIR = prefix /src SOURCE_DIR = prefix /src/ name BINARY_DIR = prefix /src/ name -build INSTALL_DIR = prefix

Re: [CMake] ExternalProject and hardwired src directory

2013-03-11 Thread Theodore Papadopoulo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/11/2013 01:06 PM, Luc J. Bourhis wrote: Ansis Māliņš wrote The problem is that I have more than a dozen targets added with ExternalProject_Add. How would I factor out such a change in one place and one place only? Use a function like:

Re: [CMake] How to set Overwrite or no over write in install(FILES ....)?

2013-03-11 Thread Eric Noulard
2013/3/11 hce jupiter@gmail.com: Andreas Stahl wrote Hello Jupiter, can you post the error message here? I wasn't aware that install(FILES ...) did any checking besides comparing the dates and overwriting if the file to be installed is newer. Also, you misunderstood what Petr meant. You

[CMake] CMake+Eclipse: how to get header files with non-standard suffix into the headers folders?

2013-03-11 Thread Magnus Therning
In the project I work on we have tools that generate quite a few header files, but they are all generated with names matching *.inc. I've added them all to the list of sources for the target, but the generated Eclipse project doesn't list these files among the headers. Is there a way to tell CMAKE

Re: [CMake] CMake+Eclipse: how to get header files with non-standard suffix into the headers folders?

2013-03-11 Thread Petr Kmoch
Hi Magnus, I've never worked with Eclipse, but source_group() might be the command you're looking for. Petr On Mon, Mar 11, 2013 at 4:17 PM, Magnus Therning mag...@therning.org wrote: In the project I work on we have tools that generate quite a few header files, but they are all generated

Re: [CMake] ExternalProject and hardwired src directory

2013-03-11 Thread Luc J. Bourhis
@Theodore Papadopoulo-2 Thanks. I had not guess I could pass a bunch of arguments to a function as a mere list. - -- Luc J. Bourhis -- View this message in context: http://cmake.3232098.n2.nabble.com/ExternalProject-and-hardwired-src-directory-tp7583497p7583576.html Sent from the CMake

[CMake] Uninitialized variables

2013-03-11 Thread Matt Campbell
Hey guys, We have an ever growing build that uses CMake cache variables to communicate things like include_dirs and library target names between dependent modules. Basically, we do what the project_name_SOURCE_DIR type of thing does but without have projects for every target. However, a

[CMake] file(DOWNLOAD ...) at build time

2013-03-11 Thread Luc J. Bourhis
Is there a simple pattern to make file(DOWNLOAD ...) do the actual downloading at build time? I tried to understand how ExternalProject_Add does it but to no avail. - -- Luc J. Bourhis -- View this message in context:

[CMake] cmake_parse_arguments and empty strings

2013-03-11 Thread Luc J. Bourhis
Consider the following snippet cmake_minimum_required(VERSION 2.8) include (CMakeParseArguments) function(foo) set(options) set(one_valued) set(multi_valued) cmake_parse_arguments(_ ${options} ${one_valued} ${multi_valued} ${ARGN}) message(${__UNPARSED_ARGUMENTS})

Re: [CMake] Accessing data

2013-03-11 Thread Eric Noulard
2013/3/11 Robert Dailey rcdailey.li...@gmail.com: I have setup all of my compiled binaries to be placed in build_dir/output. Certain executables need to access data files relative to the executable's current position. When I'm debugging through visual studio, it cannot access the data unless I

[CMake] CMake for Mac outputting .xcode instead of .xcodeproj

2013-03-11 Thread Jensen, Vern
I am using CMake 2.8.8 (cmake -version in Console confirms this). Recently it has been building .xcode projects, which are for Xcode 1.0 to 2.0, instead of .xcodeproj which is the newer file format. It used to output the proper file type. Any ideas why the change? Just doing: pushd

[CMake] CMake for Mac outputting .xcode instead of .xcodeproj

2013-03-11 Thread Jensen, Vern
I am using CMake 2.8.8 (cmake -version in Console confirms this). Recently it has been building .xcode projects, which are for Xcode 1.0 to 2.0, instead of .xcodeproj which is the newer file format. It used to output the proper file type. Any ideas why the change? Just doing: pushd

Re: [CMake] CMake for Mac outputting .xcode instead of .xcodeproj

2013-03-11 Thread Jensen, Vern
Just found out this is a bug fixed in 2.8.10. So I'll just install that version. http://public.kitware.com/Bug/view.php?id=13144 -Vern Vern Jensen Software Engineer Artificial Intelligence in Medicine (AIM) Program

[CMake] CMake couldn't find 64 bit libraries with ifort + openmpi

2013-03-11 Thread rocwhite168
Dear CMake users, I've encountered a strange situation. When I module load Intel Fortran compiler ifort and the corresponding OpenMPI installation, CMake will look for libraries dl, nsl, and util in /usr/lib directory, but since the OS, ifort, and mpif90 are all 64 bit, it should have looked

Re: [CMake] CMake+Eclipse: how to get header files with non-standard suffix into the headers folders?

2013-03-11 Thread Alexander Neundorf
On Monday 11 March 2013, Magnus Therning wrote: In the project I work on we have tools that generate quite a few header files, but they are all generated with names matching *.inc. I've added them all to the list of sources for the target, but the generated Eclipse project doesn't list these

Re: [CMake] [CDash] Set program path on the client-side, with client.cdash.xml program

2013-03-11 Thread Guillaume Blanc
Here's a log with --debug and -VV options, hope it can help to understand the problem : D:\Dev\Clientctest -S mymachine.ctest --debug -VV C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/cmCTest.cxx:2427 * Extra verbosity turned on

Re: [CMake] cmake_parse_arguments and empty strings

2013-03-11 Thread Alexander Neundorf
On Monday 11 March 2013, Luc J. Bourhis wrote: Consider the following snippet cmake_minimum_required(VERSION 2.8) include (CMakeParseArguments) function(foo) set(options) set(one_valued) set(multi_valued) cmake_parse_arguments(_ ${options} ${one_valued}

[cmake-developers] [CMake 0013999]: CMAKE_AUTOMOC ON without find_package(Qt*) does not build

2013-03-11 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=13999 == Reported By:Stephen Kelly Assigned To:

Re: [cmake-developers] Qt 4 and 5 on the same system - qmake binary name priority

2013-03-11 Thread Brad King
On 03/08/2013 02:52 PM, Clinton Stimpson wrote: Its not as simple as changing the order. If I have my own build of Qt4, and if FindQt4.cmake had this: find_program(QT_QMAKE_EXECUTABLE NAMES qmake4 qmake-qt4 qmake-mac qmake ...) and I try to use my build of Qt

Re: [cmake-developers] Qt 4 and 5 on the same system - qmake binary name priority

2013-03-11 Thread Clinton Stimpson
On Monday, March 11, 2013 11:23:31 AM Brad King wrote: On 03/08/2013 02:52 PM, Clinton Stimpson wrote: Its not as simple as changing the order. If I have my own build of Qt4, and if FindQt4.cmake had this: find_program(QT_QMAKE_EXECUTABLE NAMES qmake4 qmake-qt4 qmake-mac qmake ...) and I

Re: [cmake-developers] Qt 4 and 5 on the same system - qmake binary name priority

2013-03-11 Thread Clinton Stimpson
On Monday, March 11, 2013 10:05:48 AM Clinton Stimpson wrote: On Monday, March 11, 2013 11:23:31 AM Brad King wrote: On 03/08/2013 02:52 PM, Clinton Stimpson wrote: Its not as simple as changing the order. If I have my own build of Qt4, and if FindQt4.cmake had this:

Re: [cmake-developers] Qt 4 and 5 on the same system - qmake binary name priority

2013-03-11 Thread Brad King
On 03/11/2013 12:34 PM, Clinton Stimpson wrote: I fixed a few bugs with that patch, and it is now merged with next. Great, thanks for taking care of this. -Brad -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [cmake-developers] Qt 4 and 5 on the same system - qmake binary name priority

2013-03-11 Thread Marcus D. Hanwell
On Mon, Mar 11, 2013 at 12:45 PM, Brad King brad.k...@kitware.com wrote: On 03/11/2013 12:34 PM, Clinton Stimpson wrote: I fixed a few bugs with that patch, and it is now merged with next. Great, thanks for taking care of this. I verified that next finds the correct qmake for me too, thanks

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-11 Thread Alexander Neundorf
Hi, On Wednesday 20 February 2013, Stephen Kelly wrote: Alexander Neundorf wrote: On Wednesday 20 February 2013, Stephen Kelly wrote: Brad King wrote: Please fix and add this case to the tests. I've added fix-automoc-linker-language to stage. Alex, could you review please? If

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-11 Thread Alexander Neundorf
On Monday 11 March 2013, Alexander Neundorf wrote: Hi, ... (this is again the backtrace from the earlier, unmodified version). I think instead of avoiding the case where the code crashes, it should not crash. I pushed the branch AutomocFixWithoutQt to stage. It mostly reverts the previous

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-11 Thread Stephen Kelly
Alexander Neundorf wrote: The patch only avoided that specific situation when it occured with automoc, but the same situation can also happen independent from automoc. Not really, the attached case can only crash because of the automoc support built-in in cmake. Can you create a testcase

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-11 Thread Stephen Kelly
Stephen Kelly wrote: Alexander Neundorf wrote: The patch only avoided that specific situation when it occured with automoc, but the same situation can also happen independent from automoc. Not really, the attached case can only crash because of the automoc support built-in in cmake. Can

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2431-gad123ef

2013-03-11 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via ad123efe8561b544de2974805bae228f89a961b3 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2435-ge29babe

2013-03-11 Thread Clinton Stimpson
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via e29babed482aaf643035197fba251169ca67101f (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2437-g2b116bd

2013-03-11 Thread Clinton Stimpson
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 2b116bd80ea50a46640d701e8f55742250a5cba5 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.10.2-821-g51fc4fb

2013-03-11 Thread Kitware Robot
Stamp diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index 72b0196..8dd9dd8 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -2,5 +2,5 @@ set(CMake_VERSION_MAJOR 2) set(CMake_VERSION_MINOR 8) set(CMake_VERSION_PATCH 10) -set(CMake_VERSION_TWEAK 20130311