Re: [CMake] Deprecated commands -- replacements?

2009-09-04 Thread Bill Hoffman
Doug Hackworth wrote: Our lab has used CMake 2.4 for a long time, and on a new machine I'm trying to use version 2.6 for the first time on some of our projects. Our projects all use VTK and we keep the latest version built (currently 5.4.2). I am getting these CMake errors when I try to co

[CMake] Deprecated commands -- replacements?

2009-09-04 Thread Doug Hackworth
Our lab has used CMake 2.4 for a long time, and on a new machine I'm trying to use version 2.6 for the first time on some of our projects. Our projects all use VTK and we keep the latest version built (currently 5.4.2). I am getting these CMake errors when I try to configure our project with

Re: [CMake] out of source command line flag

2009-09-04 Thread Alexander Neundorf
On Sunday 09 August 2009, Roman Shtylman wrote: > I have been meaning to try and create such a patch for a while. The > idea behind the patch is that you can specify the location of the out > of source build directory on the command line. By itself, this really > isn't all that useful save having t

Re: [CMake] FindThreads: the odd one out?

2009-09-04 Thread Alexander Neundorf
On Sunday 30 August 2009, Philip Lowman wrote: > On Fri, Aug 28, 2009 at 4:29 AM, Marcel Loose wrote: > > Hi all, > > > > Up till now I've been using the not officially supported and released > > FindPthreads.cmake macro to check for the presence of pthreads. However, > > the maintainer of that ma

Re: [CMake] How to build 2 targets from the same source, differing in -D_SWITCHES_ only

2009-09-04 Thread Alexander Neundorf
On Thursday 27 August 2009, Christian Ehrlicher wrote: > > Von: "Marcel Loose" > > CC: cmake@cmake.org > > Betreff: Re: [CMake] How to build 2 targets from the same > > source, differing in -D_SWITCHES_ only > > > > Hi Eike, > > > > I think the only safe and reliable way to do this is create s

Re: [CMake] Let CMake convert CMAKE_MODULE_PATH to absolute path

2009-09-04 Thread Alexander Neundorf
On Tuesday 25 August 2009, Marcel Loose wrote: > Hi all, > > I've been bitten by this more than once. When specifying a module path > on the command line, you must not forget to make this an absolute path, > otherwise calling a macro from a (CMakeLists.txt file in a) subdirectory > will fail. > > W

Re: [CMake] wxDev-C++ and CMake

2009-09-04 Thread Alexander Neundorf
On Monday 24 August 2009, Robert Dailey wrote: > Hello, > Just wondering if CMake can support generating wxDev-C++ projects. From > looking around at it myself, I don't see any support for this. I'm sure the > developers have thought of this, but I'm still curious as to what they have > to say. I

Re: [CMake] pg compilers on the Cary XT4

2009-09-04 Thread Alexander Neundorf
On Thursday 20 August 2009, Will Dicharry wrote: > Responses inline... > > I'm reposting this to the CMake mailing list so someone can correct me > if I'm wrong, it looks like your message went only to me. ... > > From my short experience with CMake, it seems that once one has > > determined an OS

Re: [CMake] A variable to identify the Dart model type?

2009-09-04 Thread Bill Hoffman
Nathaniel Waisbrot (Cont ARL/CISD) wrote: I have a script, external to the rest of the CMake build, which performs some dashboard submission. I'd like to have it perform that submission *only* when ctest has been invoked as part of 'make (Nightly|Continuous|Experimental)', not 'make' or 'make t

Re: [CMake] XCode, CMAKE_CFG_INTDIR, and add_custom_command

2009-09-04 Thread James Bigler
Thanks for both of your suggestions. It looks the like the right approach is to manage the directory creation myself. Thanks, James On Fri, Sep 4, 2009 at 12:07 PM, David Cole wrote: > It should be fairly easy to add a 2nd custom command that creates the > directory and writes out a stamp file

Re: [CMake] XCode, CMAKE_CFG_INTDIR, and add_custom_command

2009-09-04 Thread David Cole
It should be fairly easy to add a 2nd custom command that creates the directory and writes out a stamp file and then make your 1st custom command depend on the stamp file. I would go with that approach and put stuff where you want it rather than trying to figure out where all the varied generators

Re: [CMake] CUSTOM COMMAND triggered several times

2009-09-04 Thread Alexander Neundorf
On Tuesday 18 August 2009, Arnaud Devalkeneer wrote: > Hi, > > I have a strange behaviour with add_custom_comand with its output form. > This command is called two or three times, even the file dependency has not > been changed and the output exists. > > I wrote : > > ADD_CUSTOM_COMMAND( > OUTP

Re: [CMake] cmake from eclipse has error but cmake from shell works fine??!? help!

2009-09-04 Thread Alexander Neundorf
On Monday 17 August 2009, Steve Mathers wrote: > I > have a relatively simple cmake file that has generated a great big > Makefile (and associated CMake files) that compiles my project just > fine when I invoke it from the bash shell, simply by typing 'make'. > > When I configure eclipse to do the

Re: [CMake] XCode, CMAKE_CFG_INTDIR, and add_custom_command

2009-09-04 Thread Tyler Roscoe
On Fri, Sep 04, 2009 at 11:09:18AM -0600, James Bigler wrote: > > So when I compile a regular C file, XCode puts the resulting object file > > here: > > > > /code/myproj/src/MyProj.build/Debug/mytarget.build/Objects-normal/i386/main.o > > > > When I try to compile something else to an object file u

Re: [CMake] ENABLE_LANGUAGE(ASM_MASM) does not seem work correctly

2009-09-04 Thread Alexander Neundorf
On Friday 14 August 2009, Gareth Morgan wrote: > I'm trying to compile a ASM file using cmake 2.6 (patch 4). I'm running > visual studio 2008, under 64-bit Vista. Neither Win32 or x64 build work. ... > should be added at the top of the file. The version specified may be > lower if you wish to

Re: [CMake] DejaGNU.

2009-09-04 Thread Alexander Neundorf
On Friday 14 August 2009, Óscar Fuentes wrote: > A project has a large number of DejaGNU tests and it is unfeasible to > translate them to CTest. > > So far I think it is possible to configure and drive DejaGNU from cmake > for running all the test suite, but not parts or individual tests. > > Any

Re: [CMake] error with custom target

2009-09-04 Thread Alexander Neundorf
On Tuesday 11 August 2009, alexis lameire wrote: > hi > i don't understand that it's don't done in my cmakelist with my custom > target to use gettext :) can you check this pliz because the target > create_mo don't done correctly Please describe exactly what you do, what does not work as you expe

Re: [CMake] Tricky problem with variable, whitespace, quotes and shell

2009-09-04 Thread Alexander Neundorf
On Thursday 06 August 2009, Asmodehn Shade wrote: > Hi everyone, > > Sorry if this has been answered before, but google doesnt give me anything > useful... > > Lets say I have a list of source files : SOURCES holds : filea.c;fileb.c > I want to pass them to an external program ( Astyle for example

Re: [CMake] XCode, CMAKE_CFG_INTDIR, and add_custom_command

2009-09-04 Thread James Bigler
On Thu, Sep 3, 2009 at 10:10 PM, James Bigler wrote: > So when I compile a regular C file, XCode puts the resulting object file > here: > > > /code/myproj/src/MyProj.build/Debug/mytarget.build/Objects-normal/i386/main.o > > When I try to compile something else to an object file using an > add_cus

Re: [CMake] Module find error running cmake

2009-09-04 Thread Tyler Roscoe
On Fri, Sep 04, 2009 at 12:22:12PM -0400, Michael Jackson wrote: > That line looks awful strange. Usually it is something like: > > cmake -DCMAKE_INSTALL_PREFIX=/usr/local/KDE > > >cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` .. He's trying to use backticks to query kde4-config for the di

Re: [CMake] Module find error running cmake

2009-09-04 Thread Michael Jackson
That line looks awful strange. Usually it is something like: cmake -DCMAKE_INSTALL_PREFIX=/usr/local/KDE or something like that.. _ Mike Jackson mike.jack...@bluequartz.net On Sep 4, 2009, at 12:04 PM, twf wrote: cmake

[CMake] Module find error running cmake

2009-09-04 Thread twf
When trying to install a program that requires cmake I run into the following problem. First off, the install requires the following command: /cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../ During the run, the following error is generated: /CMake Error at /usr/local/share/cmake-2.6/M

[CMake] SET_TARGET_PROPERTIES seem not to work

2009-09-04 Thread ariasgore
Hi, current situation: Main project includes two projects: project1 and project2. Both of them has identical piece of code: GET_TARGET_PROPERTY(CPF ${PROJECTNAME} COMPILE_FLAGS) IF(NOT CPF) SET(CPF "") ENDIF(NOT CPF) SET_T

Re: [CMake] Finding X11 fails under OS X...

2009-09-04 Thread Martin Costabel
Werner Smekal wrote: Hi, If you don't have /usr/X11/lib/libX11.dylib (which is a symbolic link to libX11.6.dylib), then your X11 installation is incomplete. You must have removed this symlink accidentally. Or maybe you can blame it on Apple's installer which is known to occasionally forget