Re: [CMake] Nightly ctest : Neither CVS, nor SVN

2007-05-15 Thread Mathieu Malaterre
hi all, I completely forgot that I could simply skipped the Update part of Nightly (handled outside of the ctest script): ctest -D NightlyStart -D NightlyConfigure -D NightlyBuild -D NightlySubmit sorry for the noise -Mathieu On 5/14/07, Richard Wackerbarth [EMAIL PROTECTED] wrote: On May

Re: [CMake] CPack and 7-Zip?

2007-05-15 Thread Peter Visser
Thanks for the suggestion but still no 'sutable' ZIP program found. I have associated 7-Zip with .zip files (and all other possible extensions .tar .gz .rar and so on.) and added 7-Zip to the system path. But unfortunately CPack was not able to use 7-Zip yet. I used my *old* system again and

[CMake] How to specify target specific CPPFLAGS or CFLAGS?

2007-05-15 Thread Clark J. Wang
I have a C source file `foo.c' and I want to produce 2 executables like this: $ gcc -DFLAG_1 -o foo_1 foo.c $ gcc -DFLAG_2 -o foo_2 foo.c How should I write the CMake rules? Thanks. ___ CMake mailing list CMake@cmake.org

Re: [CMake] How to specify target specific CPPFLAGS or CFLAGS?

2007-05-15 Thread Eric Noulard
2007/5/15, Clark J. Wang [EMAIL PROTECTED]: I have a C source file `foo.c' and I want to produce 2 executables like this: $ gcc -DFLAG_1 -o foo_1 foo.c $ gcc -DFLAG_2 -o foo_2 foo.c How should I write the CMake rules? RTFM :)) May be you can try ADD_EXECUTABLE(foo_1 foo.c)

Re: [CMake] How to specify target specific CPPFLAGS or CFLAGS?

2007-05-15 Thread Clark J. Wang
Thanks, Eric. The FM is not as easy to understand as the FMs of autotools :) I prefer TexInfo format manuals. It's much readable than man pages but I find no TexInfo manuals in CMake's package :( On 5/15/07, Eric Noulard [EMAIL PROTECTED] wrote: 2007/5/15, Clark J. Wang [EMAIL PROTECTED]: I

[CMake] QT_WRAP_CPP problem ... fails to generate MOC files ... Please Help !!!

2007-05-15 Thread Deepak Roy
Hello, I am trying to compile my QT 3.3.4 project with ITK 3.2 and CMake 2.4. Earlier, i could successfully build the same project using ITK 2.4 and CMake 2.0 Patch 6. However, now when i am trying to upgrade my ITK from version 2.4 to version 3.2 i am getting CMake build errors. Specifically,

Re: [CMake] How to specify target specific CPPFLAGS or CFLAGS?

2007-05-15 Thread haibin zhang
Hi , Just as said, How can I change CFLAGS in configure in cmake? for example in autotool: //remove debug option ./configure --prefix=/opt CFLAGS=-O2 How to do it in cmake ? regards Eric Noulard [EMAIL PROTECTED] 写道: 2007/5/15, Clark J. Wang : I have a C source file `foo.c' and I want to

Re: [CMake] How to specify target specific CPPFLAGS or CFLAGS?

2007-05-15 Thread Eric Noulard
2007/5/15, Clark J. Wang [EMAIL PROTECTED]: Thanks, Eric. The FM is not as easy to understand as the FMs of autotools :) I prefer TexInfo format manuals. It's much readable than man pages but I find no TexInfo manuals in CMake's package :( As far as I am concerned manual is ALWAYS a pain to

Re: [CMake] QT_WRAP_CPP problem ... fails to generate MOC files ... Please Help !!!

2007-05-15 Thread Alexander Neundorf
On Tuesday 15 May 2007 10:37, Deepak Roy wrote: Hello, I am trying to compile my QT 3.3.4 project with ITK 3.2 and CMake 2.4. Earlier, i could successfully build the same project using ITK 2.4 and CMake 2.0 Patch 6. However, now when i am trying to upgrade my ITK from version 2.4 to version

[CMake] FindOpenThreads

2007-05-15 Thread Pau Garcia i Quiles
Hello, I was to write a FindOpenThreads.cmake (which I will submit for inclussion in the next CMake version) when the doubt assailted me: should I patch FindThreads.cmake or write a new, independent package? (I think the latter makes more sense, as they are not an operating system stock

[CMake] EXECUTE_PROCESS problem

2007-05-15 Thread Ajay Divekar
I am trying to execute a script which calculates checksum of the binary files created during install process. the script is as follows #!/bin/sh IF(UNIX) SET(CHKSUM /sbin/sha1 -r) ELSE(UNIX) SET(CHKSUM /usr/bin/sha1sum) ENDIF(UNIX) EXECUTE_PROCESS( COMMAND ${CHKSUM}

[CMake] Using ADD_CUSTOM_COMMAND to generate sources...

2007-05-15 Thread Matthew Woehlke
Ok... so I see that ADD_CUSTOM_COMMAND is silently ignored if no targets depend on the OUTPUT. What is strange is that the output is #include'd from one of my source files, and I can see from looking at the generated CMakeFiles/mytarget.dir/CXX.includecache that cmake /does/ know about the

Re: [CMake] Specifying build architectures on Mac OS X (ppc7400 does not work?)

2007-05-15 Thread Sean McBride
On 2007-05-07 11:26, Sean McBride said: Has anyone tried to build a Universal Binary with the following: CMAKE_OSX_ARCHITECTURES:STRING=ppc7400;i386 instead of the usual: CMAKE_OSX_ARCHITECTURES:STRING=ppc;i386 If I do a 'lipo -info' on the build result it tells me Architectures in the fat

Re: [CMake] EXECUTE_PROCESS problem

2007-05-15 Thread Richard Wackerbarth
I'm not sure, but I think that, in the UNIX case, your executable is not sha1, but rather it is looking for the filename sha1 -r. Try IF(UNIX) SET(CHKSUM_EXECUTABLE /sbin/sha1) SET(CHKSUM_PARAMETERS -r) ELSE(UNIX) SET(CHKSUM_EXECUTABLE /usr/bin/sha1sum) SET(CHKSUM_PARAMETERS

Re: [CMake] Specifying build architectures on Mac OS X (ppc7400 does not work?)

2007-05-15 Thread Bill Hoffman
Sean McBride wrote: On 2007-05-07 11:26, Sean McBride said: Has anyone tried to build a Universal Binary with the following: CMAKE_OSX_ARCHITECTURES:STRING=ppc7400;i386 instead of the usual: CMAKE_OSX_ARCHITECTURES:STRING=ppc;i386 If I do a 'lipo -info' on the build result it tells me

Re: [CMake] Specifying build architectures on Mac OS X (ppc7400 does not work?)

2007-05-15 Thread Sean McBride
On 2007-05-15 14:22, Bill Hoffman said: Did you try a make VERBOSE=1 to see what flags were being used during the building of stuff to find out where it went wrong? Hi Bill, Thanks for your quick reply. I have just tried your suggestion. I changed one vtk source file: vtkImageReslice.cxx. I

Re: [CMake] RE: CMake 2.4.1/VC71 Why the wierd project.dir subdirs?

2007-05-15 Thread Alexander Neundorf
On Thursday 10 May 2007 17:25, Trevor Kellaway wrote: ... However, this has exposed a bug/issue, my list of dependencies includes some custom commands, one of which has a non-standard language extension .lint, this is causing a crash here: cmTarget.cxx line 1252 in

Re: [CMake] Specifying build architectures on Mac OS X (ppc7400 does not work?)

2007-05-15 Thread Bill Hoffman
Sean McBride wrote: On 2007-05-15 14:22, Bill Hoffman said: Did you try a make VERBOSE=1 to see what flags were being used during the building of stuff to find out where it went wrong? Hi Bill, Thanks for your quick reply. I have just tried your suggestion. I changed one vtk

[CMake] ADD_SUBDIRECTORY() and mulitple PROJECT() definitions

2007-05-15 Thread Stephane Rouleau (Consultant)
Hi, We may be using cmake in strange new ways that were not expected (or intended), so if this is not exactly correct let me know and we'll stretch it in another direction... Also this may be a bit confusing, I'm trying to simplify our setup as much as possible for the purpose of this message.

Re: [CMake] QT_WRAP_CPP problem ... fails to generate MOC files ... Please Help !!!

2007-05-15 Thread Deepak Roy
Thanks a lot Alex It worked . Regards, Deepak On 5/15/07, Alexander Neundorf [EMAIL PROTECTED] wrote: On Tuesday 15 May 2007 10:37, Deepak Roy wrote: Hello, I am trying to compile my QT 3.3.4 project with ITK 3.2 and CMake 2.4. Earlier, i could successfully build the same

[CMake] No support for lex/flex and yacc/bison?

2007-05-15 Thread Clark J. Wang
I read through the CMake's man page and found no support for lex/flex and yacc/bison. Need I define my own rules to handle with lex/yacc source files? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake