[CMake] cmake - preventing `make clean` from cleaning ExternalProject.

2011-06-06 Thread jeeyoung kim
I was wondering if there's some way to prevent make clean in cmake from re-building external dependencies. I'm using ExternalProject to build third party c++ libraries, and they do not have to be rebuilt even if I do make clean. On the other hand, I might want to create a new rule, say, make reall

Re: [CMake] Scanning dependencies of target xxx is very slow.

2011-06-06 Thread Alexander Neundorf
On Monday, June 06, 2011 05:28:48 AM jianhua wrote: > Hi Neundorf; > > Thanks for your kindly response on this issue. > > >Usually it is not that slow. > >Can you give us some more information ? > >Of how many files consists your target approximately ? > >Under which operating system ? > >Is it m

[CMake] (no subject)

2011-06-06 Thread dfurtney
Does CMake provide a way to get the list of objects going into a given target? I need such a list for a PRE_LINK custom command. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.htm

Re: [CMake] Addition to FindGit

2011-06-06 Thread Brad King
On 06/05/2011 05:02 AM, Quintus wrote: > I'm working on a git-versioned project that I'd like to display it's > version number for development versions like this: > > 1.2.3-dev (commit abc1234 on devel, 12/4/10) FYI, consider using "git describe" for versions. > CMake's FindGit module seems to be

Re: [CMake] Scanning dependencies of target xxx is very slow.

2011-06-06 Thread Bill Hoffman
On 6/5/2011 11:28 PM, jianhua wrote: Hi Neundorf; Thanks for your kindly response on this issue. Usually it is not that slow. Can you give us some more information ? Of how many files consists your target approximately ? Under which operating system ? Is it maybe on

Re: [CMake] Embedding one project inside a second

2011-06-06 Thread Glenn Coombs
A simple set of CMAKE_C_FLAGS or CMAKE_CXX_FLAGS will set the value for the current directory and below: set(CMAKE_C_FLAGS"${CMAKE_C_FLAGS} -m32") Any add_directory() commands after the above line will inherit the -m32 flag. -- Glenn On 5 June 2011 20:36, Richard Offer wrote: > > I ha

Re: [CMake] New build configuration based off existing configuration?

2011-06-06 Thread Glenn Coombs
This is what I do: # Add configuration for ReleaseNoOutfiles builds based on the release configuration # = set(CMAKE_C_FLAGS_RELEASENOOUTFILES ${CMAKE_C_FLAGS_RELEASE}CACHE STRING "Flags used by the com

Re: [CMake] Invoking CMakle outside of the build/source dir.

2011-06-06 Thread Bill Hoffman
On 6/6/2011 11:33 AM, Yuri Timenkov wrote: I guess there are cases when you can't do this. For example, on Windows you can't simply call "cd -" or you may have other kind of script than sh one (for example ant). Also both source dir and binary dir may be relative to current directory, therefore

Re: [CMake] Invoking CMakle outside of the build/source dir.

2011-06-06 Thread Yuri Timenkov
I guess there are cases when you can't do this. For example, on Windows you can't simply call "cd -" or you may have other kind of script than sh one (for example ant). Also both source dir and binary dir may be relative to current directory, therefore you don't know neither absolute nor relative

Re: [CMake] Status of FindHDF5.cmake in CMake?

2011-06-06 Thread Will Dicharry
Tim Gallagher wrote: We've run into another issue with the way FindHDF5 works. On Cray systems, h5fc -show gives: ifort -fPIC -I/opt/cray/hdf5/1.8.5.0/hdf5-intel/include -L/opt/cray/hdf5/1.8.5.0/hdf5-intel/lib /opt/cray/hdf5/1.8.5.0/hdf5-intel/lib/libhdf5hl_fortran.a /opt/cray/hdf5/1.8.5.0/

Re: [CMake] Invoking CMakle outside of the build/source dir.

2011-06-06 Thread Eric Noulard
2011/6/6 Campbell Barton : > Hi, A handful of times I would have found it useful to run cmake > without having to be in the build dir, mostly there is some way to > change the CWD or write a shell wrapper, nevertheless it could still > be useful when launching builds from scripts or more limited >

Re: [CMake] Invoking CMakle outside of the build/source dir.

2011-06-06 Thread Kishore
On Monday 06 Jun 2011 12:38:33 PM Campbell Barton wrote: > Hi, A handful of times I would have found it useful to run cmake > without having to be in the build dir, mostly there is some way to > change the CWD or write a shell wrapper, nevertheless it could still > be useful when launching builds f

Re: [CMake] Automate Cmake for ITK Projects

2011-06-06 Thread Michael Jackson
cmake -DITK_DIR=/some/path/to/ITK -G "Visual Studio 8 2005 Win64" ../src ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio O

[CMake] Automate Cmake for ITK Projects

2011-06-06 Thread Neil Panjwani
Hi, I'm trying to build an ITK project via command line automatically rather than going through the window prompts. During this process, I only ever change two options: 1) the visual studio generator (32 or 64-bit) and 2) the ITK_DIR because I have several installations of ITK and the default find

[CMake] Invoking CMakle outside of the build/source dir.

2011-06-06 Thread Campbell Barton
Hi, A handful of times I would have found it useful to run cmake without having to be in the build dir, mostly there is some way to change the CWD or write a shell wrapper, nevertheless it could still be useful when launching builds from scripts or more limited environments. Is there some way to d