[CMake] CTest and multiple platform configurations

2008-09-18 Thread Clemens Arth
Hi, I'm currently trying to set up ctest to work with multiple configurations. One issue I came across is the way of using ctest with different platform configurations. For example, my configuration does not only include Release|Win32 and Debug|Win32, but also Release|Pocket PC 2003 (ARMV4) a

Re: [CMake] cmake variables to control full path in shared lib on OSX

2008-09-18 Thread Martin Costabel
Darren Weber wrote: I'm exploring how to build and install VTK-5-2-0 on OSX. I'm trying to use shared libraries, but the default settings do not put full paths in the .dylib file links for the libvtk* libraries. I am using a non-standard install path (macports /opt/local), so I may need to set

[CMake] cmake variables to control full path in shared lib on OSX

2008-09-18 Thread Darren Weber
I'm exploring how to build and install VTK-5-2-0 on OSX. I'm trying to use shared libraries, but the default settings do not put full paths in the .dylib file links for the libvtk* libraries. I am using a non-standard install path (macports /opt/local), so I may need to set full paths for the lib

Re: [CMake] Weird output

2008-09-18 Thread Alan W. Irwin
On 2008-09-18 08:04+0200 Jesper Eskilson wrote: Alan W. Irwin wrote: I doubt setting VERBOSE at the end like that after the "all" target will work. For that order make probably assumes "VERBOSE=" is a target which is not what you want. I don't think so. [...] I investigated further, and "Un

Re: [CMake] Regenerating Visual Studio projects

2008-09-18 Thread Bill Hoffman
Jesper Eskilson wrote: Hi all, When CMake (2.6) discovers that a CMakeLists.txt file has changed, and that one or more Visual Studio projects/solutions need to be reloaded, it attempts to interrupt the build, force Visual Studio to reload the projects, and then restart the build. This is real

Re: [CMake] multi-line definitions

2008-09-18 Thread Bill Hoffman
Hendrik Sattler wrote: Am Thursday 18 September 2008 15:18:46 schrieb Bill Hoffman: cyril_wobow wrote: Have you tried the following SET (CMAKE_C_FLAGS_RELEASE "-mcpu=arm7tdmi" "-std=gnu99" "-fgnu89-inline" ... "-DNDEBUG") Cyril That won't work. It will create a list of items and it needs to

Re: [CMake] Help with REGEX expression

2008-09-18 Thread Samuel Crow
Hi Mike, I think you only had an extra * closure on the end of the MacOSX string. As soon as I took that off it worked fine. (We don't need extra X's at the end of that, after all.) --Sam --- On Thu, 9/18/08, Samuel Crow <[EMAIL PROTECTED]> wrote: > From: Samuel Crow <[EMAIL PROTECTED]> >

Re: [CMake] Help with REGEX expression

2008-09-18 Thread Samuel Crow
Correction. What you're trying to do is the right idea. I'd forgotten about the string function of CMake so actually CMake should be able to do it. --- On Thu, 9/18/08, Samuel Crow <[EMAIL PROTECTED]> wrote: > From: Samuel Crow <[EMAIL PROTECTED]> > Subject: Re: [CMake] Help with REGEX expres

Re: [CMake] using cmake with google's protocol buffers

2008-09-18 Thread Neil Girdhar
Hi Eric. Thanks a lot for getting back to me. 2008/9/18 Eric Noulard <[EMAIL PROTECTED]> > 2008/9/18 Neil Girdhar <[EMAIL PROTECTED]>: > > > > Hi, I'm trying to add a special cmake rule to build google's protocol > > buffers, and I was hoping someone could help me do it. I've broken down > the

Re: [CMake] Help with REGEX expression

2008-09-18 Thread Samuel Crow
Update: It looks like what we're trying to do cannot be done with a REGEX as such because the REGEX functions are for pattern-matching only. To actually cut out numbers from a string will require an external script. If it is only going to be running on a Mac we have Python or Bash to choose f

Re: [CMake] Help with REGEX expression

2008-09-18 Thread Mike Jackson
I pulled an older version of the CMake book but came up with this just as I got your email.. set (MIN_VERS 10.4) set (str "/MacOSX/Developer/SDKs/MacOSX10.3.9.sdk") STRING (REGEX REPLACE "(.*MacOSX*)()(.*\\.sdk)" "\\2" SDK $ {str} ) message (STATUS "replace: ${SDK}") if (SDK GREATER

Re: [CMake] Updated WinCE CMakefiles

2008-09-18 Thread Hendrik Sattler
Am Thursday 18 September 2008 14:08:05 schrieb Andreas Pokorny: > * If I am not mistaken there is yet no clean facility to specify the > libpath and include path > from the toolchain file The lib path can normally be derived from the root path by specifying the proper PATH_SUFFIXES when using f

Re: [CMake] Help with REGEX expression

2008-09-18 Thread Samuel Crow
Hello Mike, I'm looking at Page 41 of Mastering CMake 4th edition. I'll try to get this figured out for you, if you like. --Sam --- On Thu, 9/18/08, Mike Jackson <[EMAIL PROTECTED]> wrote: > From: Mike Jackson <[EMAIL PROTECTED]> > Subject: [CMake] Help with REGEX expression > To: "Cmake Mail

[CMake] VTK-5-2-0 macport build error

2008-09-18 Thread Darren Weber
I'm in the process of adapting a macport called vtk5 so it will work with VTK-5-2-0, but I have a problem with finding a library. I'm running a build on the cvs checkout with tag VTK-5-2-0; I'm trying to build against macport libraries (on OSX 10.5.5). The build is configured and builds successfu

Re: [CMake] multi-line definitions

2008-09-18 Thread Hendrik Sattler
Am Thursday 18 September 2008 15:18:46 schrieb Bill Hoffman: > cyril_wobow wrote: > > Have you tried the following > > SET (CMAKE_C_FLAGS_RELEASE "-mcpu=arm7tdmi" "-std=gnu99" > > "-fgnu89-inline" ... "-DNDEBUG") > > > > Cyril > > That won't work. It will create a list of items and it needs to be

[CMake] ctest and multiple configurations

2008-09-18 Thread Clemens Arth
Hi, I'm currently trying to set up ctest to work with multiple configurations. One issue I came across is the way of using ctest with different platform configurations. For example, my configuration does not only include Release|Win32 and Debug|Win32, but also Release|Pocket PC 2003 (ARMV4) and

[CMake] Help with REGEX expression

2008-09-18 Thread Mike Jackson
I am trying to parse out the OS Version from the following: /Developer/SDKs/MacOSX10.5.sdk /Developer/SDKs/MacOSX10.4u.sdk /Developer/SDKs/MacOSX10.3.9.sdk I only need the 10.5, 10.4 or 10.3 so I can compare it against another number (10.x or even 11.x). I have no idea where to start with t

[CMake] Regenerating Visual Studio projects

2008-09-18 Thread Jesper Eskilson
Hi all, When CMake (2.6) discovers that a CMakeLists.txt file has changed, and that one or more Visual Studio projects/solutions need to be reloaded, it attempts to interrupt the build, force Visual Studio to reload the projects, and then restart the build. This is really good compared to CMa

[CMake] using a generator with unknown output

2008-09-18 Thread dirk . bonekaemper
Hi y'all, I'm a rather new cmake user and I've got a hen & egg problem: My generator takes an inputfile and a directory, it creates output files in that directory. Number and names of generated files depend on the contents of the inputfile. However, it also generates a file with a known name th

Re: [CMake] multi-line definitions

2008-09-18 Thread Bill Hoffman
cyril_wobow wrote: Have you tried the following SET (CMAKE_C_FLAGS_RELEASE "-mcpu=arm7tdmi" "-std=gnu99" "-fgnu89-inline" ... "-DNDEBUG") Cyril That won't work. It will create a list of items and it needs to be a big string. The only way would be something like this: set(a "-mcpu=arm7td

Re: [CMake] cmake + cygwin + NSIS Cpack generators

2008-09-18 Thread Hendrik Sattler
Zitat von David Coeurjolly <[EMAIL PROTECTED]>: I'd like to use the NSIS CPack Genertor on cygwin systems but I'm having a lot of troubles: by default, cpack wants to use the Cygwin-binary generator and if I customize myself the CPackConfig script, I have many errors due to unix style filepaths

Re: [CMake] using cmake with google's protocol buffers

2008-09-18 Thread Eric Noulard
2008/9/18 Neil Girdhar <[EMAIL PROTECTED]>: > > Hi, I'm trying to add a special cmake rule to build google's protocol > buffers, and I was hoping someone could help me do it. I've broken down the > details of the protocol compiler here, so all that's missing is a cmake > expert. Did you look at t

Re: [CMake] multi-line definitions

2008-09-18 Thread cyril_wobow
Have you tried the following SET (CMAKE_C_FLAGS_RELEASE "-mcpu=arm7tdmi" "-std=gnu99" "-fgnu89-inline" ... "-DNDEBUG") Cyril Emmanuel Blot a écrit : Hi, Is it possible to write variable definition directives using multiple lines, i.e. I have a long definition string such as: SET (CMAKE_C_

[CMake] cmake + cygwin + NSIS Cpack generators

2008-09-18 Thread David Coeurjolly
Hi all, I'd like to use the NSIS CPack Genertor on cygwin systems but I'm having a lot of troubles: by default, cpack wants to use the Cygwin-binary generator and if I customize myself the CPackConfig script, I have many errors due to unix style filepaths. Here are my questions: - is the comm