Re: [CMake] [CMAKE] Defining MPI_C_COMPILER on Windows

2012-04-24 Thread Michel Lestrade
Replying to my own post in case future users run into the same issue: the extension (.bat in this case) must be specifically included for the file to be found. On 24/04/2012 10:57 AM, Michel Lestrade wrote: I need to pass the MPI_C_COMPILER value through the command line since the Intel MPI li

[CMake] [CMAKE] Defining MPI_C_COMPILER on Windows

2012-04-24 Thread Michel Lestrade
I need to pass the MPI_C_COMPILER value through the command line since the Intel MPI libraries are not being recognized properly by the FindMPI script (CMake 2.8.8). I used the following syntax: cmake -G "NMake Makefiles" -DMPI_C_COMPILER:FILEPATH="C:/Program Files (x86)/Intel/MPI/4.0.3.009/em

Re: [CMake] multi-stage tests with valgrind

2012-04-24 Thread Leif Walsh
Thanks. Looks like that will work great! On Tue, 24 Apr 2012, Bill Hoffman wrote: > On 4/24/2012 12:07 PM, Leif Walsh wrote: > > Also, it would be nice if there was a way to specify that only some of > > the commands should be run with valgrind, but that may be asking too > > much. > > > > Wha

Re: [CMake] multi-stage tests with valgrind

2012-04-24 Thread Bill Hoffman
On 4/24/2012 12:07 PM, Leif Walsh wrote: Also, it would be nice if there was a way to specify that only some of the commands should be run with valgrind, but that may be asking too much. What I usually do is use the --trace-children option. I have even patched (accepted upstream now), valgri

Re: [CMake] multi-stage tests with valgrind

2012-04-24 Thread Leif Walsh
Also, it would be nice if there was a way to specify that only some of the commands should be run with valgrind, but that may be asking too much. On Tue, 24 Apr 2012, Leif Walsh wrote: > Hi, > > I have some tests that need to be run as distinct commands, for example: > > foo_test --crash > test

[CMake] multi-stage tests with valgrind

2012-04-24 Thread Leif Walsh
Hi, I have some tests that need to be run as distinct commands, for example: foo_test --crash test "$?" != "0" foo_test --recover Right now, I have shell scripts that do this, so I have something like add_test(foo_test run_foo_test.sh ${CMAKE_CFG_INTDIR}/foo_test) but this doesn't work with Me

[CMake] cmake cygwin -uninstall

2012-04-24 Thread vijaya subramanian
Hi I installed cmake on cygwin but when I tried to use it Norton antivirus disabled it and I couldn't get it to work. I then tried to run ./bootstrap and make/make install again but nothing works now. Is there someway I can uninstall the package and reinstall? Vijaya

Re: [CMake] Zero coverage being reported on gcc/Linux builds.

2012-04-24 Thread Bradley Lowekamp
Hello, Are both of these project using SuperBuilds? I know with SimpleITK I was unable to get coverage to work in the SuperBuild structure. To get coverage we are doing the project, with its self not being an ExternalProject. However, valgrind works just fine in the Superbuild structure. I did

Re: [CMake] Zero coverage being reported on gcc/Linux builds.

2012-04-24 Thread David Cole
Ugh. You're probably doing everything right, and there's just a bug of some sort. Unfortunately, debugging these things is neither easy nor fun. First, look for Coverage*.log files in the Testing/ subdirectories of your build tree. Are there any errors mentioned in there? Next, verify that there