Re: [CMake] CDash Dynamic Analysis

2011-04-20 Thread Mika . Rajala
Hi I went for the custom DynamicAnalysis.xml thing I think I figured out what the file should contain. There is a slight problem however. The Labels in the defect list of CDash are that of some other tool How do I change them? -mika From: mika.raj...@patria.fi To: mika.raj...@patria.

[CMake] SuperBuild whoes

2011-04-20 Thread Michael Wild
Hi all I'm trying to set up a SuperBuild here. Everything works nicely the first time round I build the project. The only real problem I have is that if I change the sources of one of the sub-projects, the SuperBuild still thinks everything is up to date. Of course, this is fully explainable by th

Re: [CMake] using component install still installs all files

2011-04-20 Thread Rosen Diankov
Hi all, nevermind, i should have noticed that cmake -DCOMPONENT=MYCOMP -DCMAKE_INSTALL_PREFIX=tempdir -P cmake_install.cmake does the copy of the files directly rosen, 2011/4/21 Rosen Diankov : > hi all, > > we're making a debian source package which requires the cmake command to be: > > cmake

[CMake] using component install still installs all files

2011-04-20 Thread Rosen Diankov
hi all, we're making a debian source package which requires the cmake command to be: cmake -DCMAKE_INSTALL_PREFIX=/usr . in order to get the individual component files installed we do: cmake -DCOMPONENT=MYCOMP -DCMAKE_INSTALL_PREFIX=tempdir -P cmake_install.cmake make install although this ins

Re: [CMake] Use of ADD_CUSTOM_COMMAND

2011-04-20 Thread Gib Bogle
On 21/04/2011 11:38 a.m., Michael Hertling wrote: On 04/20/2011 11:56 PM, Gib Bogle wrote: Quoting Michael Hertling: On 04/20/2011 05:40 AM, Fraser Hutchison wrote: Hi Gib, Try the following: GET_TARGET_PROPERTY(FUBAR_EXE fubar LOCATION) ADD_CUSTOM_COMMAND(TARGET fubar POST_BUILD COMMAND ${

[CMake] parallel ctest spawning too many threads

2011-04-20 Thread Kelly Thompson
Fellow CMake users: I'm having a problem with one of my projects when I run 'ctest -j'. The problem is that after 70-90 tests, ctest decides to submit all of the remaining tests at once (~200 tests worth). For example (actual test names replaced to protect the innocent :-) % ctest -j16 Test pro

Re: [CMake] Use of ADD_CUSTOM_COMMAND

2011-04-20 Thread Michael Hertling
On 04/20/2011 11:56 PM, Gib Bogle wrote: > Quoting Michael Hertling : > >> On 04/20/2011 05:40 AM, Fraser Hutchison wrote: >>> Hi Gib, >>> >>> Try the following: >>> >>> GET_TARGET_PROPERTY(FUBAR_EXE fubar LOCATION) >>> ADD_CUSTOM_COMMAND(TARGET fubar POST_BUILD COMMAND ${CMAKE_COMMAND} -E >>> cop

Re: [CMake] Use of ADD_CUSTOM_COMMAND

2011-04-20 Thread Gib Bogle
Quoting Michael Hertling : On 04/20/2011 05:40 AM, Fraser Hutchison wrote: Hi Gib, Try the following: GET_TARGET_PROPERTY(FUBAR_EXE fubar LOCATION) ADD_CUSTOM_COMMAND(TARGET fubar POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${FUBAR_EXE} somepath) Cheers, Fraser. Don't use the obsolete LOC

Re: [CMake] Creating dependencies after adding an external project?

2011-04-20 Thread Alexander Neundorf
On Wednesday 20 April 2011, Lori Pritchett-Sheats wrote: > I have a project that depends on HDF5. A user can either specify an > existing installation and thus use a find_package or choose to have HDF5 > built with the project. I've been using Paraview as a template to > implement this but I can't

Re: [CMake] Properly Detecting Win64 - [Semi Off Topic Reply]

2011-04-20 Thread j s
On Wed, Apr 20, 2011 at 12:58 PM, j s wrote: > On Wed, Apr 20, 2011 at 12:04 PM, David Cole wrote: >> But you've blown everything else away at that point, so the *build* is a >> full rebuild, right? >> >> CMake configure takes 60 seconds, but how long does the full build take? > > My guess is tha

[CMake] Creating dependencies after adding an external project?

2011-04-20 Thread Lori Pritchett-Sheats
I have a project that depends on HDF5. A user can either specify an existing installation and thus use a find_package or choose to have HDF5 built with the project. I've been using Paraview as a template to implement this but I can't seem to get the dependencies for my project defined correctl

Re: [CMake] Properly Detecting Win64 - [Semi Off Topic Reply]

2011-04-20 Thread j s
On Wed, Apr 20, 2011 at 12:04 PM, David Cole wrote: > But you've blown everything else away at that point, so the *build* is a > full rebuild, right? > > CMake configure takes 60 seconds, but how long does the full build take? My guess is that CMake is invoking a lot of processes in running its t

Re: [CMake] Properly Detecting Win64 - [Semi Off Topic Reply]

2011-04-20 Thread David Cole
But you've blown everything else away at that point, so the *build* is a full rebuild, right? CMake configure takes 60 seconds, but how long does the full build take? On Wed, Apr 20, 2011 at 12:58 PM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > Hey Dave, > So here are some timings

Re: [CMake] sequence of cmake external project

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 12:52 PM, Yu, Daphne (SCR US) wrote: > Hello cmake users, > > I’m wondering if someone can clarify the sequence commands of CMake > external project for me. For example, I have 2 external projects as below: > > > ExternalProject_Add(A > PREFIX A > > INSTALL_COMMAND [copi

Re: [CMake] Disable buffer security check in visual studio /GS-

2011-04-20 Thread John Drescher
On Wed, Apr 20, 2011 at 12:55 PM, John Drescher wrote: > After profiling my Visual Studio 2005 application I see that over 5% > of the execution time in the Release build was spent doing buffer > security checks. I found the following link for CMake support > > http://www.cmake.org/pipermail/cmake

Re: [CMake] Properly Detecting Win64 - [Semi Off Topic Reply]

2011-04-20 Thread Michael Jackson
Hey Dave, So here are some timings for running CMake to the point where I can actually build my project. THe hardware is an Mac Pro 8 Core (16 Thread) 2.6GHz OS X 10.6.6 box also running Windows 7 x64. On OS X I use Makefiles in combination with Eclipse as the IDE so I generate straight Makef

[CMake] sequence of cmake external project

2011-04-20 Thread Yu, Daphne (SCR US)
Hello cmake users, I'm wondering if someone can clarify the sequence commands of CMake external project for me. For example, I have 2 external projects as below: ExternalProject_Add(A PREFIX A INSTALL_COMMAND [copies includes files of A to some path] ) ExternalProject_Add(B PREFIX B DEPENDS

[CMake] Disable buffer security check in visual studio /GS-

2011-04-20 Thread John Drescher
After profiling my Visual Studio 2005 application I see that over 5% of the execution time in the Release build was spent doing buffer security checks. I found the following link for CMake support http://www.cmake.org/pipermail/cmake-commits/2008-March/003844.html however I do not understand what

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread James Bigler
On Wed, Apr 20, 2011 at 10:23 AM, David Cole wrote: > On Wed, Apr 20, 2011 at 12:05 PM, j s wrote: > >> On Wed, Apr 20, 2011 at 10:55 AM, Michael Jackson >> wrote: >> > I normally do this also BUT sometimes I try to short circuit the process >> because I just want to regenerate the Solution/Pro

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 12:05 PM, j s wrote: > On Wed, Apr 20, 2011 at 10:55 AM, Michael Jackson > wrote: > > I normally do this also BUT sometimes I try to short circuit the process > because I just want to regenerate the Solution/Projects and not have to wait > for a complete CMake configurati

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 11:38 AM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > > ___ > Mike Jackson www.bluequartz.net > Principal Software Engineer mike.jack...@bluequartz.net > BlueQuartz Software

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread j s
On Wed, Apr 20, 2011 at 10:55 AM, Michael Jackson wrote: > I normally do this also BUT sometimes I try to short circuit the process > because I just want to regenerate the Solution/Projects and not have to wait > for a complete CMake configuration which takes a really long time on some > projec

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread Michael Jackson
I normally do this also BUT sometimes I try to short circuit the process because I just want to regenerate the Solution/Projects and not have to wait for a complete CMake configuration which takes a really long time on some project due to the number of tests that need to be performed. At the tim

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread j s
If it helps, I always configure from a clean directory.  This script is written in bash for cygwin, but I'm sure it would be easy enough to do from some other script: CMAKE=/cygdrive/C/Program\ Files\ \(x86\)/CMake\ 2.8/bin/cmake.exe mkdir win32 (cd win32; "$CMAKE" -G "Visual Studio 10" ..) mkdir

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread Michael Jackson
___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio On Apr 20, 2011, at 11:25 AM, David Cole wrote: > On Wed, Apr 20, 2011 at

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 11:17 AM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > On Apr 20, 2011, at 10:55 AM, David Cole wrote: > > > > > What is wrong with that one ? > > > > Nothing is wrong with it, but there is no link from the app to the > plugin, so fixup_bundle cannot determine th

Re: [CMake] Use of ADD_CUSTOM_COMMAND

2011-04-20 Thread Michael Hertling
On 04/20/2011 05:40 AM, Fraser Hutchison wrote: > Hi Gib, > > Try the following: > > GET_TARGET_PROPERTY(FUBAR_EXE fubar LOCATION) > ADD_CUSTOM_COMMAND(TARGET fubar POST_BUILD COMMAND ${CMAKE_COMMAND} -E > copy ${FUBAR_EXE} somepath) > > Cheers, > > Fraser. Don't use the obsolete LOCATION pro

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread Michael Jackson
On Apr 20, 2011, at 10:55 AM, David Cole wrote: > > What is wrong with that one ? > > Nothing is wrong with it, but there is no link from the app to the plugin, so > fixup_bundle cannot determine that it's necessary and automatically pull it > in. The plugin, from the app's point of view, is

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread tog
Yes David I fully agree with you I am not arguing on the fact that the lib cannot be retrieved from the exe - obviously it cannot and this is why the lib is a parameter of fixbundle I am just arguing that I would expect this block: INSTALL(TARGETS plugin BUNDLE DESTINATION . COMPONENT R

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 10:40 AM, tog wrote: > Well I thought that the BUNDLE line in my INSTALL command would take > care of that. Actually it is the case for the other 2 libs. > The other 2 libs show up in the following output: otool -L your_main_executable The plugin does not. > What is w

Re: [CMake] Post-Build commands on custom targets are always executed?

2011-04-20 Thread Michael Hertling
On 04/20/2011 08:16 AM, Oliver Buchtala wrote: > Am 19.04.2011 16:10, schrieb David Cole: >> On Mon, Apr 18, 2011 at 11:22 PM, Michael Hertling >> mailto:mhertl...@online.de>> wrote: >> >> On 04/19/2011 02:17 AM, Oliver Buchtala wrote: >> > Am 18.04.2011 06:58, schrieb Michael Hertling: >>

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread tog
Well I thought that the BUNDLE line in my INSTALL command would take care of that. Actually it is the case for the other 2 libs. What is wrong with that one ? I guess I am missing something with those "plugin" libraries ... ADD_LIBRARY(plugin MODULE plugin.cpp) INSTALL(TARGETS plugin BUN

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread Michael Jackson
On Apr 20, 2011, at 8:55 AM, David Cole wrote: > > > On Tue, Apr 19, 2011 at 5:44 PM, James Bigler wrote: > On Tue, Apr 12, 2011 at 2:24 PM, Bill Hoffman > wrote: > On 4/12/2011 4:13 PM, David Cole wrote: > > Does somebody have reproducible steps to get to the point where > CMAKE_SIZEOF_VOID

Re: [CMake] Changing compiler

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 9:43 AM, David Doria wrote: > On Wed, Apr 20, 2011 at 9:04 AM, David Cole > wrote: > > If you are setting the CXX compiler, you should also probably be setting > the > > C compiler. > > > > I always use environment variables to do this: > > > > export CC=/home/doriad/sr

Re: [CMake] Changing compiler

2011-04-20 Thread David Doria
On Wed, Apr 20, 2011 at 9:04 AM, David Cole wrote: > If you are setting the CXX compiler, you should also probably be setting the > C compiler. > > I always use environment variables to do this: > >   export CC=/home/doriad/src/gcc-4.5.2/bin/gcc/gcc >   export CXX=/home/doriad/src/gcc-4.5.2/bin/gc

Re: [CMake] Changing compiler

2011-04-20 Thread David Cole
If you are setting the CXX compiler, you should also probably be setting the C compiler. I always use environment variables to do this: export CC=/home/doriad/src/gcc-4.5.2/bin/gcc/gcc export CXX=/home/doriad/src/gcc-4.5.2/bin/gcc/g++ ccmake ../../src/ITK If that still doesn't work, then i

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread David Cole
The error message tells you what to do: * "Install or copy the item into the bundle before calling fixup_bundle"* That means that libplugin.so must be underneath "/tmp/example/main.app" before you call fixup_bundle. (Because it's a plugin, it will not appear in any file's otool -L output, so it

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread David Cole
On Tue, Apr 19, 2011 at 5:44 PM, James Bigler wrote: > On Tue, Apr 12, 2011 at 2:24 PM, Bill Hoffman wrote: > >> On 4/12/2011 4:13 PM, David Cole wrote: >> >> Does somebody have reproducible steps to get to the point where >>> CMAKE_SIZEOF_VOID_P disappears?? >>> >>> I've never seen that... >>>

[CMake] Changing compiler

2011-04-20 Thread David Doria
I am trying to build ITK with a non-system-standard compiler. I did so by running: ccmake ../../src/ITK/ -DCMAKE_CXX_COMPILER=/home/doriad/src/gcc-4.5.2/bin/gcc/g++ However, I get: --- CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE): The C++ compi

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread tog
Some small progress after using INSTALL(CODE ...) but still an error. (Small) code is still there https://github.com/galleon/CMakeOSX for those interested. Any idea what is going wrong ? Best Regards Guillaume -- 4/8: copying '/Users/alleon/PROJECTS/CMakeOSX_build/foo/libfoo.1.dylib' -- fi