Re: [CMake] Passing -j (or other make flags) to make?

2008-12-17 Thread Martin Apel
Tyler Roscoe wrote: > Is there a way to set flags for make from my CMakeLists.txt? > > Specifically, I have a cluster of build machines and I would like each > of them to use a specific -j flag. (I would set the -j flag in a > "global" cmake file where I set up things like project-wide -D flags and

[CMake] How to specify working directory for unit tests?

2008-12-17 Thread Tron Thomas
I need to be able to run a certain unit from a specific directory so that it will be able to find some supporting file that are needed for the test. However CTest insists on launching the test from a different location. I tried using the --build-run-dir and --build-exe-dir flags. Neither of

Re: [CMake] Setting initial CMake cache in extended Ctest scripting

2008-12-17 Thread Bartlett, Roscoe A
Bill, How do you set CTEST_DROP_SITE and CTEST_DROP_LOCATION in the extended Ctest script? I don't see an example of that in the script you point to below. Thanks, - Ross > -Original Message- > From: Bill Hoffman [mailto:bill.hoff...@kitware.com] > Sent: Wednesday, December 17, 20

Re: [CMake] Setting initial CMake cache in extended Ctest scripting

2008-12-17 Thread Bill Hoffman
Bartlett, Roscoe A wrote: Hello, How do I set the initial cache when using extended Ctest scripting? I tried setting the variable CTEST_INITIAL_CACHE but it seems to be getting ignored. I just set: SET(CTEST_CMAKE_GENERATOR "Unix Makefiles") along with CTEST_INITIAL_CACHE and I expec

[CMake] Passing in different CMake options with initial configure step with CTest

2008-12-17 Thread Bartlett, Roscoe A
Hello, Is there a way to get Ctest, in standard dashboard client mode, to use a different set of options for the cmake configure than for the later real configure after the update? My Ctest scripts will be much more robust if I could do this. Thanks, - Ross -

[CMake] Setting initial CMake cache in extended Ctest scripting

2008-12-17 Thread Bartlett, Roscoe A
Hello, How do I set the initial cache when using extended Ctest scripting? I tried setting the variable CTEST_INITIAL_CACHE but it seems to be getting ignored. I just set: SET(CTEST_CMAKE_GENERATOR "Unix Makefiles") along with CTEST_INITIAL_CACHE and I expected the CTEST_COFNIGURE(...) co

Re: [CMake] Problems with Intel Fortran 11 on Windows XP

2008-12-17 Thread Bill Hoffman
tormod.ravnanger.lan...@dnv.com wrote: You will see the version part. Let me know if it works after that change. Then I will have to figure out if I can detect the version of fortran and set the version automatically. Seems that you can have various versions of Fortran with various versi

[CMake] CMAKE_COMPILER_IS_GNUCC not yet defined when processing IRIX64.cmake

2008-12-17 Thread Gotthard, Petr
Hello, I'm using CMake on an IRIX64 platform with GCC compiler. On this platform the CMake executes the IRIX64.cmake module to configure the compiler-dependent CMAKE_ variables. It seems that during execution of the IRIX64.cmake the CMAKE_COMPILER_IS_GNUCC is not (yet) defined, so the compiler depe

Re: [CMake] Passing -j (or other make flags) to make?

2008-12-17 Thread Michael Jackson
CMake just generates the Makefiles. It does _not_ actually call make. That is up to you to do or some build script. If you are using a build script to actually fire off the build process then inside that script would be the appropriate place to add the -j flags. HTH

Re: [CMake] Weired behavior with CTest & Fedora 10 & g++ 4.3.2

2008-12-17 Thread Bill Lorensen
Some more information. This is not a clean build each night. With the compiler flags I use, it just takes too long. However, tonight, I'll clean the build tree. Perhaps some system file has been updated. I let Fedora automatically update my system. Bill On Wed, Dec 17, 2008 at 1:11 PM, Bill Loren

Re: [CMake] Weired behavior with CTest & Fedora 10 & g++ 4.3.2

2008-12-17 Thread Bill Lorensen
David, I have a Fedora 9, ctest 2.6-patch 1 RC-11 and gcc 4.3.0 that exhibits similar behavior. This is for the itk dashboard which has about 1400 tests on over 30 platforms. I have only noticed this on this one platform. Both tests segfault without any output. When I rerun them manually, they pa

Re: [CMake] add_custom_target always runs?

2008-12-17 Thread Tyler Roscoe
On Wed, Dec 17, 2008 at 08:45:01AM +0100, Martin Apel wrote: > I had a similar problem some time ago. I worked around it by first > generating the header files into ${CMAKE_CURRENT_BINARY_DIR} and then > execute 'cmake -E > copy_if_different' to their target location. This way dependent files > wil

[CMake] Passing -j (or other make flags) to make?

2008-12-17 Thread Tyler Roscoe
Is there a way to set flags for make from my CMakeLists.txt? Specifically, I have a cluster of build machines and I would like each of them to use a specific -j flag. (I would set the -j flag in a "global" cmake file where I set up things like project-wide -D flags and third-party library location

Re: [CMake] Problems with Intel Fortran 11 on Windows XP

2008-12-17 Thread Tormod.Ravnanger.Landet
> -Original Message- > From: Bill Hoffman [mailto:bill.hoff...@kitware.com] > Sent: 16. desember 2008 14:08 > To: Landet, Tormod Ravnanger > Subject: Re: [CMake] Problems with Intel Fortran 11 on Windows XP > > tormod.ravnanger.lan...@dnv.com wrote: > >> Can you try editing the .fproj.old

[CMake] Weired behavior with CTest & Fedora 10 & g++ 4.3.2

2008-12-17 Thread David Graf
Hello We have a weired problem when we compile and test our software on Fedora 10 with g++ 4.3.2. We have around 600 tests. When we execute these tests in one ctest run, two random tests always fail (without any regularity). We tested it on two different fedora installation with ctest 2.4 and