[CMake] How to get ADD_DEFINITIONS variable?

2009-11-17 Thread Sören Freudiger
Hi @all In our project we are several times adding preprocessor defines via ADD_DEFINITIONS. Now I need to get these defines to add them for a ADD_CUSTOM_COMMAND (pre build via swig ). The documentations says that these defines are stored in COMPILE_DEFINITIONS but this variable is

Re: [CMake] How to get ADD_DEFINITIONS variable?

2009-11-17 Thread Marcel Loose
Hi SirAnn, COMPILE_DEFINITIONS is a directory property, not a variable. You can retrieve that value using get_directory_property(). For example: get_directory_property(defs COMPILE_DEFINITIONS) message(STATUS Compile definitions: ${defs}) Note that the value of COMPILE_DEFINITIONS is scope

Re: [CMake] Fortran project problem (static linking)

2009-11-17 Thread Michael Wild
On 17. Nov, 2009, at 4:31 , DONG Li wrote: Hi all, I am trying to use CMake as my Fortran project build tool, it is a wonderful project guard!. But a annoying problem comes up. I searched all around the internet, but no easy document for me : (. Since I want to use static-linking, the

[CMake] Hinting find_library using other libraries + VS path truncation issues

2009-11-17 Thread Lucas Thode
1) Is there some sort of rather low upper limit on the length of the per-project header search path, either in the CMake VS generator or in VS? Test CMakeLists.txt: begin file PROJECT(test CXX) INCLUDE_DIRECTORIES(C:\Windows\System32 C:\Windows\System32\Wbem C:\Documents and Settings\All

[CMake] Documentation for find_package( COMPONENTS )

2009-11-17 Thread Mathieu Malaterre
Hi there, The documentation is pretty clear on how to generate and fill in cmake variable to declare that package VERSION x.y was properly found: ... The version file checks whether it satisfies the requested version and sets these variables: PACKAGE_VERSION

[CMake] (cmake2.8) FindOpenSSl and win32/MinGW

2009-11-17 Thread ctrlaltca
I've tried to move a project (www.kvirc.net) from from cmake 2.6.4 to 2.8 and i'm having a issue with FindOpenSSL. My os is winXP and my compilation environment is MinGW (with gcc 4.4.0) FindOpenSSL was working fine for me in cmake 2.6.4, but it's not working anymore in cmake 2.8 (OPENSSL_FOUND

Re: [CMake] (cmake2.8) FindOpenSSl and win32/MinGW

2009-11-17 Thread Mathieu Malaterre
On Tue, Nov 17, 2009 at 5:10 PM, ctrlaltca ctrlal...@libero.it wrote: I've tried to move a project (www.kvirc.net) from from cmake 2.6.4 to 2.8 and i'm having a issue with FindOpenSSL. My os is winXP and my compilation environment is MinGW (with gcc 4.4.0) FindOpenSSL was working fine for me

[CMake] CMake and Preprocessing

2009-11-17 Thread Anastasia Shchupak
Hello, I'm porting multiplatform fortran project build system to CMake. Due to OpenMP code, I need to use FPP preprocessor always (before compiling by any compiler, because some fortran compilers use just CPP as preprocessor, that does not support OpenMP). Is there a common solution using

Re: [CMake] Cmake 2.8 and cross compilation

2009-11-17 Thread Alexander Neundorf
On Monday 16 November 2009, Alexander Neundorf wrote: On Monday 16 November 2009, Emmanuel Blot wrote: If the file needs to be preprocessed, set the LANGUAGE source file property to C, this should work in most cases for now. Yes they (many of them) do Is there anyway in CMake to

Re: [CMake] CMake and Preprocessing

2009-11-17 Thread Michael Wild
On 17. Nov, 2009, at 19:13 , Anastasia Shchupak wrote: Hello, I'm porting multiplatform fortran project build system to CMake. Due to OpenMP code, I need to use FPP preprocessor always (before compiling by any compiler, because some fortran compilers use just CPP as preprocessor, that

[CMake] CDash Setup for HDF5

2009-11-17 Thread Michael Jackson
So it looks like there is an experiment underway at the HDF5 site. They are willing to CMakeify the HDF5 library build system on a trial basis. What all is involved in setting up a CDash drop site for the regression tests? Thanks _

Re: [CMake] CDash Setup for HDF5

2009-11-17 Thread David Cole
Go to http://my.cdash.org; and click the Start My Project button... Allows 10 submissions per day for free. :-) On Tue, Nov 17, 2009 at 5:20 PM, Michael Jackson mike.jack...@bluequartz.net wrote: So it looks like there is an experiment underway at the HDF5 site. They are willing to

[CMake] Problems with 2.8.0 and VS 10 generator: CMAKE_CFG_INTDIR, UNC paths, and QT_LIBRARIES

2009-11-17 Thread Ben Medina
Hello, I'm doing some testing of VS 2010 B2 with CMake 2.8.0, and I've run into several problems: 1. CMAKE_CFG_INTDIR is set to $(ConfigurationName), a macro which no longer exists in VS 2010. According to the CMake docs

Re: [CMake] Fortran project problem (static linking)

2009-11-17 Thread Michael Wild
On 18. Nov, 2009, at 6:18 , 董理 wrote: Michael Wild 写道: On 17. Nov, 2009, at 4:31 , DONG Li wrote: Hi all, I am trying to use CMake as my Fortran project build tool, it is a wonderful project guard!. But a annoying problem comes up. I searched all around the internet, but no easy

Re: [CMake] functions as first class objects

2009-11-17 Thread David Manura
On Fri, Nov 13, 2009 at 3:58 AM, Michael Wild wrote: Something like this just came up recently: http://www.cmake.org/pipermail/cmake/2009-October/032725.html That would be better than nothing, though it does have a limitation in that you cannot wrap a function more than once.

Re: [CMake] functions as first class objects

2009-11-17 Thread Michael Wild
On 18. Nov, 2009, at 7:25 , David Manura wrote: On Fri, Nov 13, 2009 at 3:58 AM, Michael Wild wrote: Something like this just came up recently: http://www.cmake.org/pipermail/cmake/2009-October/032725.html That would be better than nothing, though it does have a limitation in that you

Re: [CMake] Testing the size of long throws error when more than one OS X Arch is passed

2009-11-17 Thread Michael Wild
On 18. Nov, 2009, at 24:55 , Michael Jackson wrote: On Nov 17, 2009, at 6:45 PM, Sean McBride wrote: On 11/17/09 5:57 PM, Michael Jackson said: cmake -DCMAKE_OSX_ARCHITECTURES='x86_64;i386' ../ Will throw the following error: -- Check size of size_t CMake Error at

Re: [CMake] Testing the size of long throws error when more than one OS X Arch is passed

2009-11-17 Thread Hendrik Sattler
Zitat von Michael Jackson mike.jack...@bluequartz.net: Then in the header file that gets configured I have this: #if !defined(__APPLE__) # define MXA_SIZEOF_CHAR @MXA_SIZEOF_CHAR@ # define MXA_SIZEOF_SHORT @MXA_SIZEOF_SHORT@ # define MXA_SIZEOF_INT@MXA_SIZEOF_INT@ # define