[CMake] Controlling CMake directories for some files

2007-01-04 Thread gga
Hi. I have some code that creates out-of-source builds, by defining: EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH CMAKE_LIBRARY_PATH CMAKE_BUILD_TYPE This is working okay, but my problem is that cmake's build system is still a tad simplistic for my taste. Even when I set all those variables, the

Re: [CMake] -fPIC and precompiled header

2007-01-04 Thread Axel Roebel
Hi Maik, Thanks for the Christmas present ;-) I tried your code with gcc. The following issues/suggestions came to my mind: 1) It seems to me (and it worked for me) that you don't need to have CMAKE_CURRENT_BINARY_DIR in the include path if you change the target cflags determination into

Re: [CMake] "INCLUDE called with wrong number of arguments" error, please help.

2007-01-04 Thread Alan W. Irwin
On 2007-01-04 23:11+0100 Alexander Neundorf wrote: Hi, Von: [EMAIL PROTECTED] ... However, when I make the program, I got the following message seems there is a link problem: $ make Scanning dependencies of target test [100%] Building C object CMakeFiles/test.dir/testunsymm.o Linking C execut

Re: [CMake] "INCLUDE called with wrong number of arguments" error, please help.

2007-01-04 Thread Bill Hoffman
[EMAIL PROTECTED] wrote: On 1/4/07, Bill Hoffman <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: > hi, > I recently installed the lapack library on my linux box and would like > to configure cmake to use it. I steal the FindLapack.cmake file from > http://www.mip.informatik.uni-kiel.de/~jw/

Re: [CMake] "INCLUDE called with wrong number of arguments" error, please help.

2007-01-04 Thread Maik Beckmann
Am Donnerstag, den 04.01.2007, 16:37 -0500 schrieb [EMAIL PROTECTED]: > > hi, Bill > I made some corrections and with manually set up the locations in > cmake, ccmake . is now doing fine. My CMakeLists.txt is > PROJECT(ta) > > FIND_PACKAGE(GSL) > INCLUDE_DIRECTORIES(${GSL_INCLUDE_DIR}) > ADD_DEF

Re: [CMake] "INCLUDE called with wrong number of arguments" error, please help.

2007-01-04 Thread Alexander Neundorf
Hi, Von: [EMAIL PROTECTED] ... > However, when I make the program, I got the following message seems > there is a link problem: > $ make > Scanning dependencies of target test > [100%] Building C object CMakeFiles/test.dir/testunsymm.o > Linking C executable test > /usr/bin/ld: cannot find -llapa

[CMake] again Qt4

2007-01-04 Thread Alexander Neundorf
Hi, I don't have a Mac available, so I can't test myself. In June the following change to FindQt4.cmake was committed: http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/FindQt4.cmake?rev=1.59&root=CMake&view=log There is this big chunk of code for frameworks removed inside IF (QT_USE_FRAMEWORKS)

Re: [CMake] "INCLUDE called with wrong number of arguments" error, please help.

2007-01-04 Thread kdsfinger
On 1/4/07, Bill Hoffman <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: > hi, > I recently installed the lapack library on my linux box and would like > to configure cmake to use it. I steal the FindLapack.cmake file from > http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/FindLAPA

RE: [CMake]: Bug in ADD_LIBRARY

2007-01-04 Thread Ken Martin
Yup, I'l check in a fix for it. add_executable does it correctly. Thanks Ken Ken Martin PhD Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of wedekind Sent: Thursday, January 04, 2007 12:

Re: [CMake] Multiple build types at one go

2007-01-04 Thread Alexander Neundorf
Von: Marcin Gil <[EMAIL PROTECTED]> > Dnia czwartek, 4 stycznia 2007 16:11, Alexander Neundorf napisał: ... > > Yes. > > It would be cool if you could add a note about this in the CMake Wiki: > > http://www.cmake.org/Wiki/CMake :-) > > > Done here > http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_b

Re: [CMake] "INCLUDE called with wrong number of arguments" error, please help.

2007-01-04 Thread Bill Hoffman
[EMAIL PROTECTED] wrote: hi, I recently installed the lapack library on my linux box and would like to configure cmake to use it. I steal the FindLapack.cmake file from http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/FindLAPACK.cmake (btw, I also use the FindGSL.cmake from there a

[CMake] "INCLUDE called with wrong number of arguments" error, please help.

2007-01-04 Thread kdsfinger
hi, I recently installed the lapack library on my linux box and would like to configure cmake to use it. I steal the FindLapack.cmake file from http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/FindLAPACK.cmake (btw, I also use the FindGSL.cmake from there and it works great) and put it

Re: [CMake] CMake under cygwin using cron

2007-01-04 Thread Bill Hoffman
[EMAIL PROTECTED] wrote: I'm porting over my build system to use cmake to build my program under nmake (VS2005). If I start the build manually, everything works fine. Doing the same things as a cron job however, does not. build command: cmd /C "vcvars32.bat && cmake -G "NMake Makefiles" . &&

[CMake]: Bug in ADD_LIBRARY

2007-01-04 Thread wedekind
Hello all, I guess, I've found a bug in ADD_LIBRARY. As you know, its syntax is: ADD_LIBRARY(libname [SHARED | STATIC | MODULE] [EXCLUDE_FROM_ALL] source1 source2 ... sourceN) If you specify both EXCLUDE_FROM_ALL _and_ [SHARED | STATIC | MODULE], EXCLUDE_FROM_ALL is not considered, e

[CMake] CMake under cygwin using cron

2007-01-04 Thread cmake
I'm porting over my build system to use cmake to build my program under nmake (VS2005). If I start the build manually, everything works fine. Doing the same things as a cron job however, does not. build command: cmd /C "vcvars32.bat && cmake -G "NMake Makefiles" . && nmake" the error: -- Che

Re: [CMake] Multiple build types at one go

2007-01-04 Thread Marcin Gil
Dnia czwartek, 4 stycznia 2007 16:11, Alexander Neundorf napisał: > > > You could setup two out-of-source buildtrees and compile each with a > > > different buildtype. Is this good enough ? > > > > Hmm.. never thought of this. So my layout would be > > > > build/ > > /debug > > /release > > > >

Re: [CMake] cont. build results not appearing in dart2

2007-01-04 Thread Alexander Neundorf
Von: "Alexander Neundorf" <[EMAIL PROTECTED]> > Hi, > > so it seems I got the cont. build basically working. It runs all 5 > minutes, updates, builds if necessary and submits the result to our > dart2 server. Problem: the data arrives at the server (in > Temporary/Filexxx.xml.gz) but doesn't seem

Re: [CMake] Multiple build types at one go

2007-01-04 Thread Alexander Neundorf
Von: "Marcin Gil" <[EMAIL PROTECTED]> > On 1/4/07, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > > > > > > You could setup two out-of-source buildtrees and compile each with a > > different buildtype. Is this good enough ? > > > Hmm.. never thought of this. So my layout would be > > build/ >

[CMake] Spaces in paths bug

2007-01-04 Thread Marcin Gil
Hi! My source directory looks like this: ProjectName/ /00 Bin /10 Build /Debug /Release /50 Common /SBF I have CMakeLists.txt ProjectName/ CMakeLists.txt: PROJECT(ProjectName) ADD_SUBDIRECTORY("50 Common") /50 Common CMakeLists.txt: ADD_SUBDIRECTORY(SBF) /SBF

[CMAKE]: ADD_DEPENDENCIES not working as expected

2007-01-04 Thread wedekind
Hello all, recently I have encountered a unexpected behaviour of ADD_DEPENDENCIES. My goal is to have a set of targets that are not built with the ALL-target. They should be built using an empty "helper-target". The helper-target is an empty custom target in a CMakeLists.txt in some root-directory

Re: [CMake] Multiple build types at one go

2007-01-04 Thread Marcin Gil
On 1/4/07, Alexander Neundorf <[EMAIL PROTECTED]> wrote: You could setup two out-of-source buildtrees and compile each with a different buildtype. Is this good enough ? Hmm.. never thought of this. So my layout would be build/ /debug /release go in both directories in build and issue cma

Re: [CMake] CTestCustom.ctest not working?

2007-01-04 Thread David Cole
It works in the VTK build tree... What version of cmake/ctest? What style dashboard scripts are you using? How does your CONFIGURE_FILE for CTestCustom compare to the one found in VTK's top level CMakeLists.txt? Warnings are only suppressed when reported as part of a ctest driven dashboard run.

Re: [CMake] Multiple build types at one go

2007-01-04 Thread Alexander Neundorf
Von: "Marcin Gil" <[EMAIL PROTECTED]> > Is there a way to build multiple build types at one go? > > I would like to be able to build Debug and Release like > nmake debug; nmake install > nmake release; nmake install > > assuming that both versions install to different directories. You could se

[CMake] Multiple build types at one go

2007-01-04 Thread Marcin Gil
Is there a way to build multiple build types at one go? I would like to be able to build Debug and Release like nmake debug; nmake install nmake release; nmake install assuming that both versions install to different directories. Thanks! -Marcin ___ C