[CMake] Specifying Project Options in Visual Studio using CMakeLists.txt

2008-05-01 Thread Malhotra, Anupam
Hi I am creating a static library using cmake. A .dsw is created for Visual Studio 6. This library is using some existing libraries (say snmp.lib). I want to specify in CMakeLists.txt that this existing library be linked with the library I am creating. How can we specify something in the "Proje

[CMake] circular all <- all dependency dropped.

2008-05-01 Thread Phil Pellouchoud
I have a hierarchy of CMakeList.txt files, but I'm pretty sure I don't have any circular dependencies; I checked and double checked and I still get the notification: Make[1]: Circular all <- all dependency dropped. Any ideas? One thing a co-worker thought might be causing it is the fact th

[CMake] ADD_DEFINITIONS in RC10

2008-05-01 Thread George Neill
Bill, Seems like RC10 handles quotes differently regarding ADD_DEFINITIONS, e.g. in 2.4 patch 6 ADD_DEFINITIONS( -DSOME_VALUE=\\"value\\" ) in 2.6 RC 10 ADD_DEFINITIONS( -DSOME_VALUE="value" ) Is this expected? Thanks, George.

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread Bill Hoffman
Hendrik Sattler wrote: Bill Hoffman schrieb: I am happy to announce that CMake 2.6.0 RC10 is ready for testing. You can find the source and binaries here: http://www.cmake.org/files/v2.6/ Please give it a try soon. I really mean it this time... I am going to release 2.6.0 soon. :) This is

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread Hendrik Sattler
Bill Hoffman schrieb: I am happy to announce that CMake 2.6.0 RC10 is ready for testing. You can find the source and binaries here: http://www.cmake.org/files/v2.6/ Please give it a try soon. I really mean it this time... I am going to release 2.6.0 soon. :) This is not a regression rc9->r

[CMake] A couple of draft CMake modules; style critique?

2008-05-01 Thread Jason Riedy
Under http://www.cs.berkeley.edu/~ejr/dev/cmake-tests/ are a few *very* draft CMake modules. CheckC99.cmake : Find flags to activate C99 compliance FortranABI.cmake : Various Fortran ABI bits (name mangling, string arguments, returning REAL in double) If someone gets

Re: [CMake] Changing a name of a file to install

2008-05-01 Thread Leopold Palomo Avellaneda
A Divendres 02 Maig 2008, Leopold Palomo Avellaneda va escriure: > Hi, > > I would like to install a foo.txt file but with a different name, for > example foo-en.txt. > > How can I do it? > > Regards, > > Leo I answer to myself. RTFM install (FILES foo.txt DESTINATION share/ RENAME foo-en.tx

[CMake] Changing a name of a file to install

2008-05-01 Thread Leopold Palomo Avellaneda
Hi, I would like to install a foo.txt file but with a different name, for example foo-en.txt. How can I do it? Regards, Leo -- -- Linux User 152692 PGP: 0xF944807E Catalonia signature.asc Description: This is a digitally signed message part. __

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread Bill Hoffman
Sean McBride wrote: On 5/1/08 6:06 PM, Bill Hoffman said: I am hoping to have the real 2.6.0 out tomorrow if there are no major regressions found in RC 10. Is 24 hours really long enough to know if there are major regressions? Perhaps not, but there have not been that many changes from RC9,

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread Sean McBride
On 5/1/08 6:06 PM, Bill Hoffman said: >I am hoping to have the real 2.6.0 out tomorrow if there are no >major regressions found in RC 10. Is 24 hours really long enough to know if there are major regressions? -- Sean McBride, B. Eng

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread Bill Hoffman
George Neill wrote: Hi Bill, On Thu, May 1, 2008 at 2:48 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: I am happy to announce that CMake 2.6.0 RC10 is ready for testing. You can find the source and binaries here: http://www.cmake.org/files/v2.6/ Would you be opposed to putting a link to the la

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread George Neill
Hi Bill, On Thu, May 1, 2008 at 2:48 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > I am happy to announce that CMake 2.6.0 RC10 is ready for testing. > You can find the source and binaries here: http://www.cmake.org/files/v2.6/ Would you be opposed to putting a link to the latest RC on http://ww

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread Bill Hoffman
Bill Hoffman wrote: If someone can fix VTK, I can update all our dashboard machines from rc9 to rc10. This is not something that changed from RC9 to RC10. It must have been around since RC1... That said, Brad is adding the correct policy and minimum required commands to the examples in V

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread Bill Hoffman
Sean McBride wrote: On 5/1/08 4:59 PM, Bill Hoffman said: Policy CMP0003 should be set before this line. Add code such as if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) endif(COMMAND cmake_policy) OK, this just means that the VTK CMakeFiles have to be updated for

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread Sean McBride
On 5/1/08 4:59 PM, Bill Hoffman said: >> Policy CMP0003 should be set before this line. Add code such as >> >> if(COMMAND cmake_policy) >> cmake_policy(SET CMP0003 NEW) >> endif(COMMAND cmake_policy) >> >> > >OK, this just means that the VTK CMakeFiles have to be updated fo

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread Bill Hoffman
Yves Starreveld wrote: A slightly different result: [ 99%] Generating ../VTKExamples Internal cmake changing into directory: /Users/ystarrev/Development/vtkbin/Examples/All CMake output == CMake Warning (dev) at GUI/Qt/ImageViewer/CMakeLists.txt:28 (ADD_EXECUTABLE): Policy

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread Yves Starreveld
A slightly different result: [ 99%] Generating ../VTKExamples Internal cmake changing into directory: /Users/ystarrev/Development/ vtkbin/Examples/All CMake output == CMake Warning (dev) at GUI/Qt/ImageViewer/CMakeLists.txt:28 (ADD_EXECUTABLE): Policy CMP0003 should be set

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread clinton
Do you still have the problem if you delete your build_dir/Examples directory, re-run cmake, and rebuild? Perhaps you have some leftovers from a previous VTK configuration still stuck in your examples? Clint On Thursday 01 May 2008 2:02:31 pm Yves Starreveld wrote: > When building cvs VTK wi

Re: [CMake] Cmake/MacPackaging

2008-05-01 Thread Michael Wild
Hi Although it is not directly integrated with CMake/CPack, you might want to have a look at how the mozilla/firefox guys do it: http://lxr.mozilla.org/seamonkey/source/build/package/mac_osx/pkg-dmg and also these posts are quite useful: http://el-tramo.be/guides/fancy-dmg https://www.math.

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread Yves Starreveld
When building cvs VTK with qt4 on OSX.5.2: [ 99%] Generating ../VTKExamples Internal cmake changing into directory: /Users/ystarrev/Development/ vtkbin/Examples/All CMake output == Multiple versions of QT found please set DESIRED_QT_VERSION Multiple versions of QT found please

[CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread Bill Hoffman
I am happy to announce that CMake 2.6.0 RC10 is ready for testing. You can find the source and binaries here: http://www.cmake.org/files/v2.6/ Please give it a try soon. I really mean it this time... I am going to release 2.6.0 soon. :) Yesterday Brad and I fixed several issues. One big cha

Re: [CMake] Cmake/MacPackaging

2008-05-01 Thread Alin M Elena
Thank you Bill, What I want is something in beetween a bundle in a .dmg. I had the imprpession that OSXX11 will do it (false unfortunately ). But should not be a problem now that I know how to use hdiutil Alin -- __ "...if t

Re: [CMake] Cmake/MacPackaging

2008-05-01 Thread Bill Hoffman
Alin M Elena wrote: Hi David, Is your application an X11 app? If not, you should not need the OSXX11 generator. (And if so, you probably don't need the PackageMaker generator...?) Nope is not X11. It uses QT4 (www.projectaten.org) the idea was just to package it in a .dmg file and I thought

Re: [CMake] Cmake/MacPackaging

2008-05-01 Thread Alin M Elena
Hi David, > Is your application an X11 app? If not, you should not need the OSXX11 > generator. (And if so, you probably don't need the PackageMaker > generator...?) Nope is not X11. It uses QT4 (www.projectaten.org) the idea was just to package it in a .dmg file and I thought that I can do it f

Re: [CMake] Cmake/MacPackaging

2008-05-01 Thread David Cole
Is your application an X11 app? If not, you should not need the OSXX11 generator. (And if so, you probably don't need the PackageMaker generator...?) The OSXX11 generator gives you a wrapper application that sets up the X11 environment and then launches your X11 app. That way, end users can just d

Re: [CMake] Cmake/MacPackaging

2008-05-01 Thread Alin M Elena
Hi David, Thank you for the pointer that helped me to solve the problem of the .pkg Now the problem is with the OSXX11 generator. I still do not get a good package. I had a look in this source /home/alin/CMake/Source/CPack/cmCPackOSXX11Generator.cxx and it seems that the "strange" file gets c

Re: [CMake] Can't set CMAKE_Fortran_FLAGS ?

2008-05-01 Thread Bill Hoffman
Convey Christian J NPRI wrote: setenv FC /usr/bin/f77 setenv FFLAGS "-fno-backslash" cmake Setting the compiler before the project command is not a good idea. Thanks Bill, that did the trick. Is there any plan to change this so that I can set these details inside a CMakeLists.txt file? Doin

Re: [CMake] Can't set CMAKE_Fortran_FLAGS ?

2008-05-01 Thread Maik Beckmann
Am Donnerstag 01 Mai 2008 19:04:39 schrieb Convey Christian J NPRI: > I'm using cmake version 2.7-20080501, and I'm having trouble setting > CMAKE_Fortran_FLAGS. Any suggestions about what I'm doing wrong? > > Here's my CMakeLists.txt file: > > SET(CMAKE_

Re: [CMake] Can't set CMAKE_Fortran_FLAGS ?

2008-05-01 Thread Convey Christian J NPRI
> setenv FC /usr/bin/f77 > setenv FFLAGS "-fno-backslash" > cmake > > Setting the compiler before the project command is not a good idea. Thanks Bill, that did the trick. Is there any plan to change this so that I can set these details inside a CMakeLists.txt file? Doing is via environmental v

Re: [CMake] Can't set CMAKE_Fortran_FLAGS ?

2008-05-01 Thread Bill Hoffman
Convey Christian J NPRI wrote: I'm using cmake version 2.7-20080501, and I'm having trouble setting CMAKE_Fortran_FLAGS. Any suggestions about what I'm doing wrong? Here's my CMakeLists.txt file: SET(CMAKE_Fortran_COMPILER "/usr/bin/f77") SET(CMAKE_Fortran_F

Re: [CMake] Can't set CMAKE_Fortran_FLAGS ?

2008-05-01 Thread David Cole
(Although if you do that, you cannot change it from the cache editor.) HTH, David On Thu, May 1, 2008 at 1:04 PM, Convey Christian J NPRI < [EMAIL PROTECTED]> wrote: > I'm using cmake version 2.7-20080501, and I'm having trouble setting > CMAKE_Fortran_FLAGS.

[CMake] Can't set CMAKE_Fortran_FLAGS ?

2008-05-01 Thread Convey Christian J NPRI
I'm using cmake version 2.7-20080501, and I'm having trouble setting CMAKE_Fortran_FLAGS. Any suggestions about what I'm doing wrong? Here's my CMakeLists.txt file: SET(CMAKE_Fortran_COMPILER "/usr/bin/f77") SET(CMAKE_Fortran_FLAGS "-fno-backslash") PR

Re: [CMake] F77 support?

2008-05-01 Thread Convey Christian J NPRI
> 2.4.8 should have been the very last release of 2.4 . 2.6 > will be released soon. You can download the lasted RC of 2.6 at > http://www.cmake.org/files/v2.6 > to test it. I downloaded the current CVS version (cmake-2.7.20080501.zip), and that seems to fix the main problem I was encounteri

Re: [CMake] F77 support?

2008-05-01 Thread Maik Beckmann
Am Donnerstag 01 Mai 2008 15:30:58 schrieb Convey Christian J NPRI: > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Maik Beckmann > > Sent: Thursday, May 01, 2008 8:43 AM > > To: cmake@cmake.org > > Subject: Re: [CMake] F77 support? > > > > Am D

Re: [CMake] F77 support?

2008-05-01 Thread Convey Christian J NPRI
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Maik Beckmann > Sent: Thursday, May 01, 2008 8:43 AM > To: cmake@cmake.org > Subject: Re: [CMake] F77 support? > > Am Donnerstag 01 Mai 2008 14:20:20 schrieb Convey Christian J NPRI: > > I've read that

Re: [CMake] F77 support?

2008-05-01 Thread Maik Beckmann
Am Donnerstag 01 Mai 2008 14:20:20 schrieb Convey Christian J NPRI: > I've read that CMake 2.6 gives full support for building Fortran 90, but > does it handle Fortran 77 equally well? Yes. > And are there any tricks I should know about for building F77 code with > CMake and g77 on Linux? Just s

[CMake] F77 support?

2008-05-01 Thread Convey Christian J NPRI
I've read that CMake 2.6 gives full support for building Fortran 90, but does it handle Fortran 77 equally well? And are there any tricks I should know about for building F77 code with CMake and g77 on Linux? Thanks, Christian Christian Convey Scientist, Naval Undersea Warfare Centers Newport,

Re: [CMake] prefer static to dynamic library on linux

2008-05-01 Thread Bill Hoffman
Leopold Palomo Avellaneda wrote: A Dimecres 30 Abril 2008, John Doe va escriure: Hello, I just started using ubuntu linux and it is a pleasure to see that they provide both static and shared versions of libtcl8.4. Is there a way to tell cmake to prefer the static version of this library, even

Re: [CMake] prefer static to dynamic library on linux

2008-05-01 Thread Leopold Palomo Avellaneda
A Dimecres 30 Abril 2008, John Doe va escriure: > Hello, > > I just started using ubuntu linux and it is a pleasure to see that > they provide both static and shared versions of libtcl8.4. Is there a > way to tell cmake to prefer the static version of this library, even > if they are in the same d