[CMake] Last minute build-date file.

2010-10-15 Thread fatman
On Fri, 15 Oct 2010 12:00:02 -0400 cmake-requ...@cmake.org wrote: > Hello: > > If my app requires relinking, then at link time > I would like to capture the current date and time and place it > in a last-minute source file which is linked with the application. > Following is my attempt at this w

Re: [CMake] How would I use parallel make on ExternalProjects?

2010-10-08 Thread fatman
> There is one problem with that, which is what I'm trying to address: > load balancing. If your project builds ITK, VTK, and sundry other > prerequisite libraries, it will spawn 4 sequential builds. In > practice this means everything except ITK (which we build with > wrapping on) finishes, and

[CMake] Disallowing in-source builds

2010-10-07 Thread fatman
> > is there an easy way to clean out a source tree if an in-source > > build was accidentally kicked off? (short of dividing the files by > > their timestamp and removing the newer ones, etc..) My immediate thought was, does "make clean" not work for you? But I guess you're talking about CMake d

Re: [CMake] CMake/MinGW/Windows XP 32-bit: command line arguments delimited by semicolon?

2010-10-06 Thread fatman
On Wed, 6 Oct 2010 11:58:05 -0400 David Cole wrote: > Put double quotes on these lines (and lines like them) so that > CMAKE_CXX_FLAGS is a single space separated string. Ahhh, I see. That solves it. Thanks. Looks like I need to do lots of work on the CMakeLists.txt files to get them to work o

Re: [CMake] CMake/MinGW/Windows XP 32-bit: command line arguments delimited by semicolon?

2010-10-06 Thread fatman
On Wed, 6 Oct 2010 11:09:36 -0400 David Cole wrote: > Looks to me like somebody quoted a ${CMAKE_CXX_FLAGS} reference where > they should not have quoted it... I can believe it, sounds like my work. ;) > What does the CMakeLists.txt file look like? Hmm. I'll link you directly to the files in

[CMake] CMake/MinGW/Windows XP 32-bit: command line arguments delimited by semicolon?

2010-10-06 Thread fatman
Hi list, Found some odd behaviour while setting up CMake on Windows XP. I've tried to correct the word-wrapping cmd.exe does, not always successfully; I hope you can read this: C:\Users\buildbot\Reu2\bin\bga120\build\Reu2\cmake>rm -r * C:\Users\buildbot\Reu2\bin\bga120\build\Reu2\cmake>cmake ..

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-05 Thread fatman
On 5/10/2010, "Eric Noulard" wrote: >Ok now I see the precise scheme. >I'll try to reproduce that. > >Unfortunately I will be off network for a while so could you be kind >enough to open a bug tracker entry >http://public.kitware.com/Bug/my_view_page.php >and add a reference to this thread of di

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-05 Thread fatman
ed. Here's how I start the buildslave. 1. Log into the buildslave over SSH using my normal user account, "fatman". The SSH daemon is set for public-key authentication only, so "fatman" is the only account I can use. 2. Switch to a bash shell controlled by my non-login-ena

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-04 Thread fatman
pmrc somewhere. (Can't think why I would but I'll check anyway.) fat...@nikko:/var/lib/buildbot$ sudo find / | grep .rpmrc$ [sudo] password for fatman: /usr/lib/rpm/rpmrc fat...@nikko:/var/lib/buildbot$ No .rpmrc, but there is some sort of defaults file. I searched this file for the string

Re: [CMake] CMake/Buildbot xplat upload?

2010-10-04 Thread fatman
On 1/10/2010, "Eric Noulard" wrote: >may be worth a feature request. Feature request added. Please see http://www.cmake.org/Bug/view.php?id=11286 . ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/open

Re: [CMake] CMake/Buildbot xplat upload?

2010-10-04 Thread fatman
>> CMake is integrating well with Buildbot to make a sort of poor-man's >> build farm. The one thing I can't seem to work out is a crossplatform >> way to upload CPack-built packages (Windows and Linux) to a web server >> (Ubuntu). > >that's true you have file(DOWNLOAD ...) (which internally uses

[CMake] rpmbuild breaks if HOME is wrong

2010-10-04 Thread fatman
Hi list, I notice rpmbuild tries to use the HOME directory as a base for its files. This won't work if HOME is set wrongly (eg. by "sudo -u other bash"), as in my case. Is it possible to stop it doing this and make it use the CPack build hierarchy? Thanks, Adam J Richardson

Re: [CMake] CMAKE_CXX_FLAGS

2010-10-01 Thread fatman
>> As a total non-expert I don't see how this will work because >> if build type is "Debug" then CMake will use >> CMAKE_CXX_FLAGS_DEBUG not CMAKE_CXX_FLAGS. > >I believe it would use both, however, if you are checking >CMAKE_BUILD_TYPE, then your build system will not work as expected on >multi-c

Re: [CMake] CMAKE_CXX_FLAGS

2010-10-01 Thread fatman
It let me in more quickly than usual today. Let's look at the IO log. cd cmake && make VERBOSE=1 all && cd .. in dir /home/arichardson/buildbot/Reu2/bin/vostro/build (timeout 1200 secs) watching logfiles {} argv: cd cmake && make VERBOSE=1 all && cd .. [ 2%] Building CXX object SmallTestLib/

Re: [CMake] CMAKE_CXX_FLAGS

2010-10-01 Thread fatman
>>I'll insert that into the builder configuration, >> sighup the buildmaster and force a build. Or at least I will when the server lets me in. It's started doing this odd thing every day where it works until I try and SSH into it, then it goes offline for an hour and when it comes back I can SSH

Re: [CMake] CMAKE_CXX_FLAGS [was: Re: CMake Digest, Vol 77, Issue 104]

2010-10-01 Thread fatman
>> Could be. I too am a non-expert. CMake doesn't seem to output the >> command lines it executes, or if it does then Buildbot ignores it. This >> is the view from Buildbot's IO log: >> >> >> Can I make CMake more verbose? The IO log above contains the command >> line executed by Buildbot ("cd

[CMake] Error finding boost libraries

2010-10-01 Thread fatman
> From: David Aldrich > Subject: > To: "cmake@cmake.org" > > The following command is not working for me: > > find_package( Boost 1.40.0 COMPONENTS python REQUIRED ) > > I get error: > > CMake Error at CMakeLists.txt:36 (find_package): > Could not find module FindBoostLibs.cmake or a config

[CMake] CMAKE_CXX_FLAGS [was: Re: CMake Digest, Vol 77, Issue 104]

2010-10-01 Thread fatman
On Fri, 1 Oct 2010 10:23:30 +0100 David Aldrich wrote: > > if(CMAKE_BUILD_TYPE EQUAL Debug) > >set(CMAKE_CXX_FLAGS -Wno-long-long -Wno-comment -Wwrite-strings > > -std=c++0x -pedantic-errors -pedantic -Wall -W -g -gdwarf-2 -Weffc++ > > -Wmain -Wextra) > > else(CMAKE_BUILD_TYPE EQUAL Debug) >

[CMake] CMake/Buildbot xplat upload?

2010-10-01 Thread fatman
Hi list, I Googled for this but didn't find anything. CMake is integrating well with Buildbot to make a sort of poor-man's build farm. The one thing I can't seem to work out is a crossplatform way to upload CPack-built packages (Windows and Linux) to a web server (Ubuntu). The target web server

Re: [CMake] How to set compiler flags?

2010-10-01 Thread fatman
On Fri, 1 Oct 2010 11:05:34 +0200 Michael Wild wrote: > > > > if(CMAKE_BUILD_TYPE EQUAL Debug) > > set(CMAKE_CXX_FLAGS -Wno-long-long -Wno-comment -Wwrite-strings > > -std=c++0x -pedantic-errors -pedantic -Wall -W -g -gdwarf-2 -Weffc++ > > -Wmain -Wextra) > > else(CMAKE_BUILD_TYPE EQUAL Debug)

Re: [CMake] CMake Digest, Vol 77, Issue 104

2010-10-01 Thread fatman
> Date: Wed, 29 Sep 2010 03:14:57 +0200 > From: Michael Hertling > Subject: Re: [CMake] How to set compiler flags? > To: cmake@cmake.org > Message-ID: <4ca29311.1050...@online.de> > Content-Type: text/plain; charset=ISO-8859-1 > > > [...] So I now use add_definitions instead: > > > > add_defini