[CMake] UNIX/APPLE

2009-08-07 Thread Micha Renner
is UNIX on Apple true? I mean the build-in-variables. .e.g: IF(UNIX) ... IF(APPLE) ... ENDIF(APPLE) ENDIF(UNIX) I don't have a Apple-maschine to test it. Greetings Micha ___ Powered by

Re: [CMake] UNIX/APPLE

2009-08-07 Thread Andreas Pakulat
On 07.08.09 09:05:26, Micha Renner wrote: is UNIX on Apple true? I mean the build-in-variables. Yes, MacOS is a Unix derivative, so UNIX is set. Andreas -- Your love life will be... interesting. ___ Powered by www.kitware.com Visit other Kitware

[CMake] How could I control generated object files name?

2009-08-07 Thread huaiguang ye
hi, How could I control my generated object files name? Because I found in my cmake project, *.c/*.cc/*.cpp will generated to object *.c.o/*.cc.o/*.cpp.o, but I really want to get *.o. Such as: $ find . -name *.o ./src/CMakeFiles/RSLcommon.dir/BasicDdm.cc.o

Re: [CMake] UNIX/APPLE

2009-08-07 Thread ML
Micha, is UNIX on Apple true? I mean the build-in-variables. Yes, MacOS is a Unix derivative, so UNIX is set. Maybe obvious, but since I am new and learning, you can also do: IF(UNIX AND NOT APPLE) ... ENDIF(UNIX AND NOT APPLE) -Jason

Re: [CMake] Linking against OS X Frameworks

2009-08-07 Thread ML
Hi Michael, Thank you for your reply. What is the best way to do that exactly? I am in cluding Carbon/ Carbon.h in my source files. but I guess CMAKE needs to know where to fine them too. moving form XCode is harder than I thought it would be. include_directories

[CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Frank Mertens
I started using cmake (2.6.3) under OpenBSD (4.5) and found it unwillingly to link my software correctly. The issue had been described some time ago: http://www.cmake.org/pipermail/cmake/2006-November/011851.html. I figured out that cmake-2.6.3/Modules/Platform/NetBSD.cmake contains some

Re: [CMake] Linking against OS X Frameworks

2009-08-07 Thread Bill Hoffman
ML wrote: Hi Michael, I still get the same compile errors as before. But works using Xcode for me. Is there another resource as I can't find an example of these basic things on the wiki. Even Google searching is not really turning up much. I did

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Brad King
Frank Mertens wrote: I started using cmake (2.6.3) under OpenBSD (4.5) and found it unwillingly to link my software correctly. The issue had been described some time ago: http://www.cmake.org/pipermail/cmake/2006-November/011851.html. I figured out that

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Brad King
Brad King wrote: Frank Mertens wrote: The solution was simple: cp NetBSD.cmake OpenBSD.cmake. I think those two files can be kept safely identical. Currently OpenBSD.cmake has this line: SET_PROPERTY(GLOBAL PROPERTY FIND_LIBRARY_USE_OPENBSD_VERSIONING 1) I've applied the commit below.

[CMake] CMake copy files when they change to build dir

2009-08-07 Thread Eric Jonas
Hello, I use CMake with boost::python to generate python modules, and it does a great job of creating the required .so files. There's an interesting question, however, of how to test the resulting object. When doing an out-of-source build, I end up with build/myproj/foo.so and in my source

Re: [CMake] CMake copy files when they change to build dir

2009-08-07 Thread Tyler Roscoe
On Fri, Aug 07, 2009 at 10:08:16AM -0400, Eric Jonas wrote: I'd like to, as part of the build process, copy test_foo.py to build/myproj/test_foo.py . That is, when I type make, if src/myproj/test_foo.py differs from build/myproj/test_foo.py, copy it over. I've tried various incantations

Re: [CMake] CMake copy files when they change to build dir

2009-08-07 Thread Eric Jonas
There is a FAQ entry about this that ought to work. Why don't you post what you have so we can see where you're going wrong? Also you can use cmake -E copy_if_different as the command part. It is platform-independent, unlike cp. Tyler, thanks for the quick response -- after quite a bit

[CMake] Fw: cmake error

2009-08-07 Thread Siamak Yousefi
Hi, I am trying to install ITK using cmake on my computer, but I got the error message below. Any help in this regard is highly appreciated. Regards, Siamak Yousefi CMake Error at /home/syouse/cmake/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE): The C compiler /usr/bin/gcc is

Re: [CMake] Fw: cmake error

2009-08-07 Thread Tyler Roscoe
On Fri, Aug 07, 2009 at 08:09:34AM -0700, Siamak Yousefi wrote: CMake Error at /home/syouse/cmake/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE): The C compiler /usr/bin/gcc is not able to compile a simple test program. It fails with the following output: Change Dir:

Re: [CMake] Fw: cmake error

2009-08-07 Thread Siamak Yousefi
Hi, I checked the access to /home/syouse/ITKb/CMakeFiles/CMakeTmp, it has the permission of writing. This /usr/bin/gcc is the path to gcc and g++. My shell is c shell. I run these three commands before configuring ITK: setenv PATH ${PATH}:/home/syouse/cmake/bin setenv CC /usr/bin/gcc setenv

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Frank Mertens
Brad King wrote: Frank Mertens wrote: I started using cmake (2.6.3) under OpenBSD (4.5) and found it unwillingly to link my software correctly. The issue had been described some time ago: http://www.cmake.org/pipermail/cmake/2006-November/011851.html. I figured out that

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Frank Mertens
Frank Mertens wrote: Brad King wrote: Frank Mertens wrote: I started using cmake (2.6.3) under OpenBSD (4.5) and found it unwillingly to link my software correctly. The issue had been described some time ago: http://www.cmake.org/pipermail/cmake/2006-November/011851.html. I figured out

Re: [CMake] Fw: cmake error

2009-08-07 Thread Tyler Roscoe
On Fri, Aug 07, 2009 at 08:43:51AM -0700, Siamak Yousefi wrote: I checked the access to /home/syouse/ITKb/CMakeFiles/CMakeTmp, it has the permission of writing. This /usr/bin/gcc is the path to gcc and g++. My shell is c shell. I run these three commands before configuring ITK: setenv PATH

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Bill Hoffman
Frank Mertens wrote: I'm running OpenBSD on a freshly refurbishes office server. It does currently nothing else than running tests for my inhouse needs. Give me the pointers and I set it up as testing client for cmake, too. Being new to ctest, I skimmed through CMake Testing With CTest and

Re: [CMake] Linking against OS X Frameworks

2009-08-07 Thread Michael Jackson
On Aug 7, 2009, at 9:30 AM, Bill Hoffman wrote: ML wrote: Hi Michael, I still get the same compile errors as before. But works using Xcode for me. Is there another resource as I can't find an example of these basic things on the wiki. Even Google searching is not really turning up much.

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Frank Mertens
Bill Hoffman wrote: Frank Mertens wrote: I'm running OpenBSD on a freshly refurbishes office server. It does currently nothing else than running tests for my inhouse needs. Give me the pointers and I set it up as testing client for cmake, too. Being new to ctest, I skimmed through CMake

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Frank Mertens
Bill Hoffman wrote: Frank Mertens wrote: I'm running OpenBSD on a freshly refurbishes office server. It does currently nothing else than running tests for my inhouse needs. Give me the pointers and I set it up as testing client for cmake, too. Being new to ctest, I skimmed through CMake

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Frank Mertens
Bill Hoffman wrote: Frank Mertens wrote: I'm running OpenBSD on a freshly refurbishes office server. It does currently nothing else than running tests for my inhouse needs. Give me the pointers and I set it up as testing client for cmake, too. Being new to ctest, I skimmed through CMake

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Frank Mertens
Frank Mertens wrote: Bill Hoffman wrote: Frank Mertens wrote: I'm running OpenBSD on a freshly refurbishes office server. It does currently nothing else than running tests for my inhouse needs. Give me the pointers and I set it up as testing client for cmake, too. Being new to ctest, I

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Bill Hoffman
Frank Mertens wrote: Bill Hoffman wrote: Frank Mertens wrote: I'm running OpenBSD on a freshly refurbishes office server. It does currently nothing else than running tests for my inhouse needs. Give me the pointers and I set it up as testing client for cmake, too. Being new to ctest, I

Re: [CMake] cmake under OpenBSD: rpath support misconfigured

2009-08-07 Thread Bill Hoffman
Frank Mertens wrote: Oh,... well I just run 'make Experimential' on the CVS source an hour ago. It passed all tests! But I fear the dart stuff failed to send a report, got some strange errors about '/proc/cpuinfo' missing. Right OpenBSD has sysctl and no '/proc'. I probably have to stick my

Re: [CMake] Linking against OS X Frameworks

2009-08-07 Thread ML
Hi All, Continuing this conversation Folks, CMake is framework aware. You don't need to add the -F stuff. You can either use a full path to a framework in include_directories or in target_link_libraries. Find_library will also find frameworks. The following will work: