[CMake] Building source RPMs?

2010-08-05 Thread Magnus Therning
I'm currently using CPack to build binary RPMs, is there a way to also generate a source RPM? /M -- Magnus Therning                        (OpenPGP: 0xAB4DFBA4) magnus@therning.org          Jabber: magnus@therning.org http://therning.org/magnus         identi.ca|twitter: magthe

Re: [CMake] include_directories and qt4_wrap_cpp

2010-08-05 Thread Dennis Schridde
On Monday 02 August 2010 17:20:36 Dennis Schridde wrote: Replacing .framework with \\.framework works. Was this change already commited? I.e. is the problem solved in the sources now? --Dennis signature.asc Description: This is a digitally signed message part.

Re: [CMake] include_directories and qt4_wrap_cpp

2010-08-05 Thread Michael Wild
On 5. Aug, 2010, at 11:28 , Dennis Schridde wrote: On Monday 02 August 2010 17:20:36 Dennis Schridde wrote: Replacing .framework with \\.framework works. Was this change already commited? I.e. is the problem solved in the sources now? --Dennis IMHO this is wrong. \\. searches for a

Re: [CMake] Building source RPMs?

2010-08-05 Thread Eric Noulard
2010/8/5 Magnus Therning mag...@therning.org: I'm currently using CPack to build binary RPMs, is there a way to also generate a source RPM? Not yet...with CPackRPM. Building a source RPM with CMake/CPack is not as easy as building a binary RPM. Because currently the spec file used to build a

Re: [CMake] include_directories and qt4_wrap_cpp

2010-08-05 Thread David Cole
No, he's right. \\. when used in a CMake string(REGEX operation matches a single dot exactly. The \\ is required to get a single \ into the regular expression engine. On Thu, Aug 5, 2010 at 5:39 AM, Michael Wild them...@gmail.com wrote: On 5. Aug, 2010, at 11:28 , Dennis Schridde wrote: On

Re: [CMake] include_directories and qt4_wrap_cpp

2010-08-05 Thread Dennis Schridde
On Thursday 05 August 2010 11:39:00 Michael Wild wrote: On 5. Aug, 2010, at 11:28 , Dennis Schridde wrote: On Monday 02 August 2010 17:20:36 Dennis Schridde wrote: Replacing .framework with \\.framework works. Was this change already commited? I.e. is the problem solved in the

Re: [CMake] include_directories and qt4_wrap_cpp

2010-08-05 Thread Michael Wild
Ah yes, I always keep forgetting that you have to get the \ past the CMake parser... :-( Sorry for the noise. Michael On 5. Aug, 2010, at 12:07 , David Cole wrote: No, he's right. \\. when used in a CMake string(REGEX operation matches a single dot exactly. The \\ is required to get a

[CMake] How to obtain date of the day

2010-08-05 Thread Jean-Christophe Fillion-Robin
hi Folks, Earlier in the day, somebody asked me how he could obtain today date using cmake. I replied there was no direct way to obtain the date and I told him to use a macro I wrote. See http://viewvc.slicer.org/viewcvs.cgi/trunk/CMake/Slicer3TodayMacro.cmake?rev=11898view=log Is there a better

Re: [CMake] How to obtain date of the day

2010-08-05 Thread Michael Wild
On 5. Aug, 2010, at 15:46 , Jean-Christophe Fillion-Robin wrote: hi Folks, Earlier in the day, somebody asked me how he could obtain today date using cmake. I replied there was no direct way to obtain the date and I told him to use a macro I wrote. See

Re: [CMake] How to obtain date of the day

2010-08-05 Thread David Cole
On Thu, Aug 5, 2010 at 9:46 AM, Jean-Christophe Fillion-Robin jchris.filli...@kitware.com wrote: hi Folks, Earlier in the day, somebody asked me how he could obtain today date using cmake. I replied there was no direct way to obtain the date and I told him to use a macro I wrote. See

Re: [CMake] include_directories and qt4_wrap_cpp

2010-08-05 Thread Clinton Stimpson
On 08/05/2010 03:28 AM, Dennis Schridde wrote: On Monday 02 August 2010 17:20:36 Dennis Schridde wrote: Replacing .framework with \\.framework works. Was this change already commited? I.e. is the problem solved in the sources now? Yes, it is in git, but its still waiting for a

Re: [CMake] Building source RPMs?

2010-08-05 Thread Magnus Therning
On Thu, Aug 5, 2010 at 10:39, Eric Noulard eric.noul...@gmail.com wrote: 2010/8/5 Magnus Therning mag...@therning.org: I'm currently using CPack to build binary RPMs, is there a way to also generate a source RPM? Not yet...with CPackRPM. Building  a source RPM with CMake/CPack is not as

[CMake] Help with dependency on custom command output

2010-08-05 Thread James Amundson
I cannot get the following simple build process to work. I must be missing something. I build a (test) executable test_diagnostics, which depends on a source file test_diagnostics.cc and a generated file test_diagnostics_get_mean.icc. I generate the latter with python

Re: [CMake] Help with dependency on custom command output

2010-08-05 Thread David Cole
Shouldn't that be this? add_custom_command(OUTPUT test_diagnostics_get_mean.icc COMMAND python test_diagnostics_crosscheck.py DEPENDS test_diagnostics_crosscheck.py) add_executable(test_diagnostics test_diagnostics.cc test_diagnostics_get_mean.icc) FYI, add_dependencies is only used to

Re: [CMake] Help with dependency on custom command output

2010-08-05 Thread James Amundson
On 08/05/2010 10:42 AM, David Cole wrote: Shouldn't that be this? add_custom_command(OUTPUT test_diagnostics_get_mean.icc COMMAND python test_diagnostics_crosscheck.py DEPENDS test_diagnostics_crosscheck.py) add_executable(test_diagnostics test_diagnostics.cc

[CMake] N projects/packages that depend

2010-08-05 Thread klaas.holwerda
Hi, I have in my repository N projects/packages, that depend on each other. E.g. project 1 found with find_package( wxDocview ), needs to build first, before i can do project2. I can not generate all at once all cmake binary project files, since the project2, call find_package on project 1.

[CMake] Dependency bug in cmake with a custom-command

2010-08-05 Thread Andreas Pakulat
Hi, we're currently hitting what looks like a dependency problem with CMake and a custom-command. Unfortunately I couldn't reproduce this so far with a small example and it also only happens with one of the targets we're building in kdevplatform. This code was recently added, but looks the same

[CMake] Cannot find modules directory on MacOS

2010-08-05 Thread Chris Wolf
I already searched around and found this answer: http://www.mail-archive.com/cmake@cmake.org/msg04790.html ...however, there is NO such directory, /usr/share/cmake* on my system. (nor /usr/local/share/cmake*) I tried to investigate: $ cd

Re: [CMake] Cannot find modules directory on MacOS

2010-08-05 Thread Ryan Pavlik
How are you running cmake? I've used the installer from the web site on my mac, and it works fine both from the GUI and the command line, and I did not have to move/link the modules. Is it possible that you have some other version of cmake installed (from macports, fink, or brew?)? Try removing

Re: [CMake] Building source RPMs?

2010-08-05 Thread Alexander Neundorf
On Thursday 05 August 2010, Magnus Therning wrote: On Thu, Aug 5, 2010 at 10:39, Eric Noulard eric.noul...@gmail.com wrote: ... What is your usage pattern? We ship most of our sources as source RPMs since most of our changes are added patches to upstream (CentOS) RPMs. It is just nice to

Re: [CMake] Building source RPMs?

2010-08-05 Thread Olaf van der Spek
On Thu, Aug 5, 2010 at 9:25 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: Somehow I don't really understand how a source RPM or source deb generator would make sense for CPack. E.g. a source deb is the plain source package, plus an optional patch, plus a file which describes how to

Re: [CMake] Building source RPMs?

2010-08-05 Thread Magnus Therning
On 05/08/10 20:25, Alexander Neundorf wrote: On Thursday 05 August 2010, Magnus Therning wrote: On Thu, Aug 5, 2010 at 10:39, Eric Noulard eric.noul...@gmail.com wrote: ... What is your usage pattern? We ship most of our sources as source RPMs since most of our changes are added patches to

Re: [CMake] Cannot find modules directory on MacOS

2010-08-05 Thread Chris Wolf
Today is my first time messing with CMake, so I don't have any prior versions. Well, I was reading this page: http://www.cmake.org/Wiki/CMake:How_To_Write_Platform_Checks because I wanted to use: INCLUDE (CheckIncludeFiles) This page has the following paragraph: Additionally to the

Re: [CMake] Dependency bug in cmake with a custom-command

2010-08-05 Thread Ryan Pavlik
Do you need to set the sourcefile property GENERATED to true? (I'd think that would be automatic, but worth a try.) Ryan On Thu, Aug 5, 2010 at 1:29 PM, Andreas Pakulat ap...@gmx.de wrote: Hi, we're currently hitting what looks like a dependency problem with CMake and a custom-command.

Re: [CMake] Dependency bug in cmake with a custom-command

2010-08-05 Thread David Cole
On Thu, Aug 5, 2010 at 2:29 PM, Andreas Pakulat ap...@gmx.de wrote: Hi, we're currently hitting what looks like a dependency problem with CMake and a custom-command. Unfortunately I couldn't reproduce this so far with a small example and it also only happens with one of the targets we're

[CMake] Small, complete CPack example?

2010-08-05 Thread Chris Wolf
I'm looking all over for an end-to-end basic example of using CPack to create a package with a single shared library target. It can even be with the TGZ generator. I already checked these pages: http://www.cmake.org/cmake/help/cpack-2-8-docs.html#see:FrequentlyAskedQuestions

[CMake] Coverage reporting to CDash with Bullseye 7.14.9

2010-08-05 Thread Derek Minton
I have a CMake 2.8.2 based project that is using Bullseye Coverage and Visual Studio 10 along with CTest on Windows 7 64bit. This project is reporting building/testing/coverage results to a local CDash server. If I use Bullseye 7.14.0 the coverage results shown in CDash show decorated source

Re: [CMake] Small, complete CPack example?

2010-08-05 Thread Olaf van der Spek
On Thu, Aug 5, 2010 at 11:06 PM, Chris Wolf cw10...@gmail.com wrote: I'm looking all over for an end-to-end basic example of using CPack to create a package with a single shared library target.  It can even be with the TGZ generator. cmake_minimum_required(VERSION 2.4) set(CMAKE_BUILD_TYPE

Re: [CMake] Dependency bug in cmake with a custom-command

2010-08-05 Thread Andreas Pakulat
On 05.08.10 17:05:46, David Cole wrote: On Thu, Aug 5, 2010 at 2:29 PM, Andreas Pakulat ap...@gmx.de wrote: we're currently hitting what looks like a dependency problem with CMake and a custom-command. Unfortunately I couldn't reproduce this so far with a small example and it also only

Re: [CMake] Small, complete CPack example?

2010-08-05 Thread Chris Wolf
On 8/5/10 5:15 PM, Olaf van der Spek wrote: On Thu, Aug 5, 2010 at 11:06 PM, Chris Wolf cw10...@gmail.com wrote: I'm looking all over for an end-to-end basic example of using CPack to create a package with a single shared library target. It can even be with the TGZ generator.

Re: [CMake] Building source RPMs?

2010-08-05 Thread Eric Noulard
2010/8/5 Alexander Neundorf a.neundorf-w...@gmx.net: On Thursday 05 August 2010, Magnus Therning wrote: On Thu, Aug 5, 2010 at 10:39, Eric Noulard eric.noul...@gmail.com wrote: ... What is your usage pattern? We ship most of our sources as source RPMs since most of our changes are added

Re: [CMake] Small, complete CPack example?

2010-08-05 Thread Eric Noulard
2010/8/6 Chris Wolf cw10...@gmail.com: Unfortunately, at first, I din't see how your example is different from the parts of my CMakeList.txt I sent in my last post. Then I noticed that your install(TARGETS... command had a relative path for DESTINATION, whereas mine had an absolute path.  

Re: [CMake] How to obtain date of the day

2010-08-05 Thread Andrew Maclean
Hi All, I wrote a little c++ program that gets the date and time from the system. It just returns a UTC time: /mm/dd hhm:ss UTC. Works in Linux, Windows, MAC-OS but does use iostream and ctime. Then I have this in my CMake file:

Re: [CMake] [cmake-developers] Support for multiple components in cpack

2010-08-05 Thread Eric Noulard
2010/8/3 Eric Noulard eric.noul...@gmail.com: 2010/8/3 David Cole david.c...@kitware.com: On Mon, Aug 2, 2010 at 6:57 PM, Eric Noulard eric.noul...@gmail.com wrote: 2. may always be an option because it was the behavior we had before the component support and ALL CPack generator may handle

Re: [CMake] Support for multiple components in cpack

2010-08-05 Thread Eric Noulard
2010/8/4 Kishore kitts.mailingli...@gmail.com: On Monday 02 Aug 2010 4:59:47 pm Eric Noulard wrote: Hi All, I did add a patch for the multiple file problem http://public.kitware.com/Bug/view.php?id=10736 May be interested people can have a try and comment this patch. It adds the

Re: [CMake] Small, complete CPack example?

2010-08-05 Thread Chris Wolf
On 8/5/10 6:22 PM, Eric Noulard wrote: 2010/8/6 Chris Wolf cw10...@gmail.com: Unfortunately, at first, I din't see how your example is different from the parts of my CMakeList.txt I sent in my last post. Then I noticed that your install(TARGETS... command had a relative path for

[CMake] Virtual Studio 8 and 10 error: '/Tc' requires an argument

2010-08-05 Thread John McGehee
I have my CMake build, test and install working on Linux, and now I'm trying to get it to build on Windows. On Windows XP SP3, I have installed: CMake 2.8.2 Virtual Studio Express 9 and 10 CMake Configure and Generate for either Virtual Studio 9 or 10 run without error. In VS, I open

[CMake] Build tree with common dependency - CMP-0002

2010-08-05 Thread Frank Gruman
Hello all, I've been working on getting cmake set up in our dev environment for cross platform builds and am running into some (one, primarily) issues. In general, our source tree looks like this: project Folder A \ code folder for (static lib) project A-1 | code folder for

[cmake-developers] Howto to fuse two commits in a single one with git

2010-08-05 Thread Eric Noulard
Hi all, I want to fuse two (or more) consecutive git commit in a single commit in order to simplify my local history before pushing to remote. What I mean is that git log contains let say 5 commits. I want to fuse together commit 3 and 4 which would make my total history depth to 4 (instead of 5

Re: [cmake-developers] [CMake] Support for multiple components in cpack

2010-08-05 Thread Eric Noulard
2010/8/3 Eric Noulard eric.noul...@gmail.com: 2010/8/3 David Cole david.c...@kitware.com: On Mon, Aug 2, 2010 at 6:57 PM, Eric Noulard eric.noul...@gmail.com wrote: 2. may always be an option because it was the behavior we had before the component support and ALL CPack generator may handle

Re: [cmake-developers] [CMake] Support for multiple components in cpack

2010-08-05 Thread Clinton Stimpson
On Thursday, August 05, 2010 04:46:01 pm Eric Noulard wrote: 2010/8/3 Eric Noulard eric.noul...@gmail.com: 2010/8/3 David Cole david.c...@kitware.com: On Mon, Aug 2, 2010 at 6:57 PM, Eric Noulard eric.noul...@gmail.com wrote: 2. may always be an option because it was the behavior we had