Re: [CMake] Cross compile + shared libs problem

2008-04-01 Thread Frederik Deweerdt
On Wed, Apr 02, 2008 at 01:39:11AM +0200, Alexander Neundorf wrote: > On Wednesday 02 April 2008, you wrote: > > On Tue, Apr 01, 2008 at 10:12:20PM +0200, Alexander Neundorf wrote: > > > On Tuesday 01 April 2008, you wrote: > > > > On Sat, Mar 29, 2008 at 12:25:45AM +0100, Alexander Neundorf wrote:

Re: [CMake] FindBoost.cmake updated on the bugtracker

2008-04-01 Thread Matthew Woehlke
Andreas Pakulat wrote: On 01.04.08 16:37:42, Matthew Woehlke wrote: Andreas Pakulat wrote: On 31.03.08 20:14:00, Matthew Woehlke wrote: Also note that those variables you use in find_path are automatically cached and I don't think they should appear in it. Apart from that, you're iterating ove

Re: [CMake] Cross compile + shared libs problem

2008-04-01 Thread Alexander Neundorf
On Wednesday 02 April 2008, you wrote: > On Tue, Apr 01, 2008 at 10:12:20PM +0200, Alexander Neundorf wrote: > > On Tuesday 01 April 2008, you wrote: > > > On Sat, Mar 29, 2008 at 12:25:45AM +0100, Alexander Neundorf wrote: > > > > On Tuesday 25 March 2008, you wrote: > > > > ... > > > > > > > > >

Re: [CMake] Cross compile + shared libs problem

2008-04-01 Thread Frederik Deweerdt
On Tue, Apr 01, 2008 at 10:12:20PM +0200, Alexander Neundorf wrote: > On Tuesday 01 April 2008, you wrote: > > On Sat, Mar 29, 2008 at 12:25:45AM +0100, Alexander Neundorf wrote: > > > On Tuesday 25 March 2008, you wrote: > > > ... > > > > > > > I validated the general approach this morning, should

Re: [CMake] FindBoost.cmake updated on the bugtracker

2008-04-01 Thread Andreas Pakulat
On 01.04.08 16:37:42, Matthew Woehlke wrote: > Andreas Pakulat wrote: >> On 31.03.08 20:14:00, Matthew Woehlke wrote: >> Also note that those variables you use in >> find_path are automatically cached and I don't think they should appear >> in it. >> >> Apart from that, you're iterating over all te

Re: [CMake] [CPACK] debian package + CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA patch

2008-04-01 Thread Bill Hoffman
Mathieu Malaterre wrote: I checked in a version of your fix, but changed it to use ExpandListArguement. Can you please test? Index: cmCPackDebGenerator.cxx === RCS file: /cvsroot/CMake/CMake/Source/CPack/cmCPackDebGenerator.cxx,

Re: [CMake] Find preferentially in /usr/local/lib not working

2008-04-01 Thread Matthew Woehlke
Matthew Woehlke wrote: Stephen Collyer wrote: However, this is a pain - I'd rather have cmake reconstruct the cached FIND_PATH values each time I run it, without my having to remove it or alter it manually - is that possible ? Try this: before calling FIND_PATH(foo ...), add SET(foo foo-NOTFOU

Re: [CMake] FindBoost.cmake updated on the bugtracker

2008-04-01 Thread Matthew Woehlke
Andreas Pakulat wrote: On 31.03.08 20:14:00, Matthew Woehlke wrote: Andreas Pakulat wrote: Hi, just wanted to let interested parties know that I've added a new version of FindBoost.cmake to bug #6257. It fixes a few bugs I still had in v2. I'd delete the existing versions, but unfortunately C

Re: [CMake] How to make a target depends from target 'all'

2008-04-01 Thread Alexander Neundorf
On Tuesday 01 April 2008, Mehdi Rabah wrote: > Hi, > > I have a target 'sync' in my project and I want to rebuild all the project > when I call this target 'sync'. So I tried to make sync depends from the > target 'all' but I don't know how to do it. Targets like "all" and "clean" are not (yet) fi

Re: [CMake] Cross compile + shared libs problem

2008-04-01 Thread Alexander Neundorf
On Tuesday 01 April 2008, you wrote: > On Sat, Mar 29, 2008 at 12:25:45AM +0100, Alexander Neundorf wrote: > > On Tuesday 25 March 2008, you wrote: > > ... > > > > > I validated the general approach this morning, should be ready by > > > tomorrow. > > > > News ? > > Sorry, I couldn't quite save tim

Re: [CMake] Cross compile + shared libs problem

2008-04-01 Thread Frederik Deweerdt
On Sat, Mar 29, 2008 at 12:25:45AM +0100, Alexander Neundorf wrote: > On Tuesday 25 March 2008, you wrote: > ... > > I validated the general approach this morning, should be ready by > > tomorrow. > > News ? Sorry, I couldn't quite save time to make a nice platform file. Would you accept the follo

Re: [CMake] FOSDEM Talk on CMake is available

2008-04-01 Thread Pau Garcia i Quiles
Quoting Pau Garcia i Quiles <[EMAIL PROTECTED]>: Quoting Maik Beckmann <[EMAIL PROTECTED]>: Hello List, Even if the cmake video cast of the talk given by Bill at fosdem 2008 not shown to be available here http://fosdem.org/2008/media/video it is: http://ftp.heanet.ie/mirrors/fosdem-video/200

Re: [CMake] installing in /etc

2008-04-01 Thread Mathieu Malaterre
On Tue, Apr 1, 2008 at 3:58 PM, Eric Noulard <[EMAIL PROTECTED]> wrote: > 2008/4/1, Mathieu Malaterre <[EMAIL PROTECTED]>: > > > Hi there, > > > > I do not understand what I need to do to install at absolute file > > path. Here is what I have right now: > > Mathieu did you read this thread:

Re: [CMake] [CPACK] debian package + CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA patch

2008-04-01 Thread Mathieu Malaterre
Hi Bill, On Tue, Apr 1, 2008 at 4:00 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > Mathieu Malaterre wrote: > > > Ok, found the issue (*). There is an empty line. I am guessing that > > there is a duplicate \n in the CPACK_DEBIAN_PACKAGE_ARCHITECTURE line. > > This can easily be fixed applying

Re: [CMake] FOSDEM Talk on CMake is available

2008-04-01 Thread Pau Garcia i Quiles
Quoting Maik Beckmann <[EMAIL PROTECTED]>: Hello List, Even if the cmake video cast of the talk given by Bill at fosdem 2008 not shown to be available here http://fosdem.org/2008/media/video it is: http://ftp.heanet.ie/mirrors/fosdem-video/2008/maintracks/FOSDEM2008-cmake.ogg The slides seem

Re: [CMake] FindBoost.cmake updated on the bugtracker

2008-04-01 Thread Andreas Pakulat
On 31.03.08 20:14:00, Matthew Woehlke wrote: > Andreas Pakulat wrote: >> Hi, >> >> just wanted to let interested parties know that I've added a new version >> of FindBoost.cmake to bug #6257. It fixes a few bugs I still had in >> v2. >> >> I'd delete the existing versions, but unfortunately CMake's

Re: [CMake] [CPACK] debian package

2008-04-01 Thread Bill Hoffman
Mathieu Malaterre wrote: Ok, found the issue (*). There is an empty line. I am guessing that there is a duplicate \n in the CPACK_DEBIAN_PACKAGE_ARCHITECTURE line. This can easily be fixed applying this patch (**). Bill do you think this is enough for cmake 2.6.0 or do you want the full patch th

Re: [CMake] installing in /etc

2008-04-01 Thread Eric Noulard
2008/4/1, Mathieu Malaterre <[EMAIL PROTECTED]>: > Hi there, > > I do not understand what I need to do to install at absolute file > path. Here is what I have right now: Mathieu did you read this thread: http://www.cmake.org/pipermail/cmake/2008-March/020685.html in particular did you try to S

Re: [CMake] CMAKE error when I add my own library

2008-04-01 Thread Bill Hoffman
irene gonzalvez wrote: Dear CMake-users, ... ADD_LIBRARY (myfunctions Library/itkBinaryBallStructuringElement_modified.txx) A .txx file is a template file. It is not a compiled file. That is why your library is empty. -Bill ___ CMake mailing

Re: [CMake] Getting the subversion version using CMake.

2008-04-01 Thread David Cole
Try this in your top level CMakeLists.txt file: FIND_PACKAGE(Subversion) IF(Subversion_FOUND) Subversion_WC_INFO("${CMAKE_CURRENT_SOURCE_DIR}" myproj) MESSAGE(STATUS "myproj_WC_REVISION='${myproj_WC_REVISION}'") ENDIF(Subversion_FOUND) WC == working copy See the macro definition of Subversion

Re: [CMake] installing in /etc

2008-04-01 Thread Mathieu Malaterre
Ra nevermind, I just found the solution. Use relative path: ADD_EXECUTABLE(gdcmreadahead gdcmreadahead.c) INSTALL(TARGETS gdcmreadahead DESTINATION usr/sbin ) # package its twin init.d script also: INSTALL(PROGRAMS gdcmreadahead DESTINATION etc/init.d/ ) se

[CMake] installing in /etc

2008-04-01 Thread Mathieu Malaterre
Hi there, I do not understand what I need to do to install at absolute file path. Here is what I have right now: ... ADD_EXECUTABLE(gdcmreadahead gdcmreadahead.c) INSTALL(TARGETS gdcmreadahead DESTINATION /usr/sbin ) # package its twin init.d script also: INSTALL(PROGR

Re: [CMake] [CPACK] debian package

2008-04-01 Thread Mathieu Malaterre
On Tue, Apr 1, 2008 at 1:48 PM, Mathieu Malaterre <[EMAIL PROTECTED]> wrote: > > On Mon, Mar 31, 2008 at 8:21 PM, Filipe Sousa <[EMAIL PROTECTED]> wrote: > > > > Mathieu Malaterre wrote: > > > On Mon, Mar 31, 2008 at 1:44 AM, Filipe Sousa <[EMAIL PROTECTED]> wrote: > > >> Philip Lowman wrote:

Re: [CMake] [CPACK] debian package

2008-04-01 Thread Mathieu Malaterre
On Mon, Mar 31, 2008 at 8:21 PM, Filipe Sousa <[EMAIL PROTECTED]> wrote: > > Mathieu Malaterre wrote: > > On Mon, Mar 31, 2008 at 1:44 AM, Filipe Sousa <[EMAIL PROTECTED]> wrote: > >> Philip Lowman wrote: > >> > On Fri, Mar 28, 2008 at 11:53 AM, Bill Hoffman <[EMAIL PROTECTED]> > >> > wrote:

[CMake] How to make a target depends from target 'all'

2008-04-01 Thread Mehdi Rabah
Hi, I have a target 'sync' in my project and I want to rebuild all the project when I call this target 'sync'. So I tried to make sync depends from the target 'all' but I don't know how to do it. I tried to add "DEPENDS all" in the ADD_CUSTOM_TARGET command but I didn't work : make[3]: *** No ru

[CMake] CMAKE error when I add my own library

2008-04-01 Thread irene gonzalvez
Dear CMake-users, I have been modifying one of the libraries of ITK for including it in my project, but I have found a problem because the CMake doesn't create the file .lib, so I cannot build the project using the Visual Studio 2005 without any error. In the souce project of my folder, I have

Re: [CMake] Only one target becomes verbose in the makefile

2008-04-01 Thread Niko Vuokko
On Tuesday 01 April 2008 03:47, you wrote: > Seems to work fine for me (using CMake 2.4.8 on Linux (Ubuntu/gutsy)). After total purging and reinstalling from source CMake started to work ok again. Now I get verbosity in makefiles. ___ CMake mailing list

Re: [CMake] VS Project Question

2008-04-01 Thread Philip Lowman
On Mon, Mar 31, 2008 at 11:24 PM, Surya Kiran Gullapalli < [EMAIL PROTECTED]> wrote: > I want to do similar change for ADD_EXECUTABLE as well. > > > > > > For Debug builds I want to have a console popping up to show the debug > > > messages, and for release builds I do not want the console. > >

Re: [CMake] VS Project Question

2008-04-01 Thread Surya Kiran Gullapalli
> > I use the following code for MSVC2003.Net. Not sure if it works on VS2005 > or VS2008: > IF (BUILD_SHARED_LIBS) > IF (WIN32) > SET(LIB_RELEASE_NAME "expatdll") > SET(LIB_DEBUG_NAME "expatdll_D") > ELSE (WIN32) > SET(LIB_RELEASE_NAME "expat") > SET(LIB_D

Re: [CMake] VS Project Question

2008-04-01 Thread Surya Kiran Gullapalli
> > I want to do similar change for ADD_EXECUTABLE as well. > > > > For Debug builds I want to have a console popping up to show the debug > > messages, and for release builds I do not want the console. > > > > How can i change the ADD_EXECUTABLE call accordingly to supply extra > > option WIN32

Re: [CMake] FindBoost.cmake updated on the bugtracker

2008-04-01 Thread Matthew Woehlke
Andreas Pakulat wrote: Hi, just wanted to let interested parties know that I've added a new version of FindBoost.cmake to bug #6257. It fixes a few bugs I still had in v2. I'd delete the existing versions, but unfortunately CMake's bugtracker doesn't allow to do that. Last but not least: Is th

Re: [CMake] Find preferentially in /usr/local/lib not working

2008-04-01 Thread Matthew Woehlke
Stephen Collyer wrote: However, this is a pain - I'd rather have cmake reconstruct the cached FIND_PATH values each time I run it, without my having to remove it or alter it manually - is that possible ? Try this: before calling FIND_PATH(foo ...), add SET(foo foo-NOTFOUND) (you may need SET(f

[CMake] Getting the subversion version using CMake.

2008-04-01 Thread Andrew Maclean
We want to coordinate versioning with our subversion repository. Has anyone done this with CMake? There is a file called .svn\entries and the fourth line in that file has a version number e.g. 660. I am thinking of somehow picking up this number and creating a variable to use in our builds. Or is

Re: [CMake] Only one target becomes verbose in the makefile

2008-04-01 Thread Philip Lowman
On Mon, Mar 31, 2008 at 8:17 AM, Niko Vuokko <[EMAIL PROTECTED]> wrote: > On Monday 31 March 2008 14:56, you wrote: > > On Mon, Mar 31, 2008 at 5:17 AM, Niko Vuokko <[EMAIL PROTECTED]> wrote: > > > I have just a single project, which contains one small shared library > and > > > several small exec

[CMake] Copying executeables and libraries

2008-04-01 Thread Andreas Pokorny
Hi, I work on a project that creates several dlls and shared object files, and some executables. To test only aspects of the software I need to copy the tested parts into a separate directory, because one of the components loads all libraries that implement a certain interface and can be found in t

[CMake] FOSDEM Talk on CMake is available

2008-04-01 Thread Maik Beckmann
Hello List, Even if the cmake video cast of the talk given by Bill at fosdem 2008 not shown to be available here http://fosdem.org/2008/media/video it is: http://ftp.heanet.ie/mirrors/fosdem-video/2008/maintracks/FOSDEM2008-cmake.ogg The slides seem not to be available yet. For those who don'

Re: [CMake] -D constants

2008-04-01 Thread Alexander Neundorf
On Monday 31 March 2008, stephan ripke wrote: > Hello, > I am a cmake-beginner and I want to "translate" my old project for use with > cmake: > 1) I brought some constants with the preprocessor from the Makefile into my > sourcecode (e.g.: g++ -Dconstant=10 main.cpp). How do I do something like > t