Re: [CMake] CPack tar ownership

2011-01-07 Thread Eric Noulard
2011/1/7 Tim St. Clair : > Is there a way to make all entries in the tar package are owned by > root, vs. build user. On which platform? Linux ? Debian? Fedora? Did you try using "fakeroot" ? -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org __

Re: [CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Mark Abraham
On 8/01/2011 1:53 AM, Michael Wild wrote: On 01/07/2011 03:26 PM, Mark Abraham wrote: It appears that FindMPI.cmake works fine, but then the CMake macro CHECK_C_SOURCE_COMPILES seems to fail its "check variable name for sanity" test. I can conceive of no reason for this happening. What have I do

Re: [CMake] Anyone gotten OpenSSL to build as an external project?

2011-01-07 Thread kent williams
That's kind of a solution, but as near as I can figure CMAKE_SIZEOF_VOID_P doesn't change if I set CMAKE_OSX_ARCHITECTURE to i386. The following seems to work, but I explicitly test CMAKE_OSX_ARCHITECTURE so that if I'm building i386 on a system with x86_64 as the default, it correctly configures

Re: [CMake] Fixed ProjectGUID

2011-01-07 Thread Pau Garcia i Quiles
Hello, In Visual Studio 2010, ProjectGUID is a global. This bug provides a patch to add global definitions to CMake, but only up to Visual Studio 2008. It shouldn't be difficult to update the patch to add support for Visual C++ 2010. Setting the ProjectGUID would then be as easy as: set_target_pr

Re: [CMake] Anyone gotten OpenSSL to build as an external project?

2011-01-07 Thread David Cole
In a project where the CXX language has been enabled (project or enable_language commands), and there's only one architecture, you can use the following: if(CMAKE_SIZEOF_VOID_P EQUAL 8) # 64-bit build else() # 32-bit build endif() Or are you trying to build a universal binary and you have mul

[CMake] Anyone gotten OpenSSL to build as an external project?

2011-01-07 Thread kent williams
This shouldn't be a big deal -- something like this should work: ExternalProject_add(OpenSSL    URL "http://www.openssl.org/source/openssl-1.0.0c.tar.gz";    URL_MD5 ff8fb85610aef328315a9decbb2712e4    CONFIGURE_COMMAND ./config --prefix="${CMAKE_CURRENT_BINARY_DIR}/OpenSSL" BUILD_IN_SOURCE 1  

Re: [CMake] Regex help: multi-line matching and matching backslashes

2011-01-07 Thread David Cole
It should work. But I'm pretty sure we don't recognize "\s" for white space. Try "[ \\t\\n\\r]" instead of \\s. But. watch out for white space after "(" and before ")" too. You might miss some lines if they have spaces there. On Fri, Jan 7, 2011 at 2:55 PM, Ben Medina wrote: > I need to p

[CMake] Regex help: multi-line matching and matching backslashes

2011-01-07 Thread Ben Medina
I need to parse a C++ file for Google Test macros. (I'm aware the GTEST_ADD_TESTS provided by FindGtest.cmake, but I need the test list for my own purposes). I had been using a regex similar to the one in GTEST_ADD_TESTS to match tests: string (REGEX MATCHALL "TEST_?F?\\([A-Za-z_0-9 ,]+)\\)" found

[CMake] CPack tar ownership

2011-01-07 Thread Tim St. Clair
Is there a way to make all entries in the tar package are owned by root, vs. build user. -- Cheers, Timothy St. Clair ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [CMake] packaging after success testing

2011-01-07 Thread Tyler Roscoe
On Fri, Jan 07, 2011 at 12:52:58PM +0100, ycollette.nos...@free.fr wrote: > A while ago, a question similar to this one was posted, but no answer > was given. Link? > Is it possible to perform the packaging part of a project only if the > testing part has been successfully performed ? I do this

Re: [CMake] Fixed ProjectGUID

2011-01-07 Thread David Cole
The guids should remain constant in a given build tree for the life of the CMakeCache.txt file. But after you delete that and start in a fresh build tree, you'll get fresh guids. If you want constant guids in your vcproj files, they should be built by hand, not with CMake. HTH, David 2011/1/7

[CMake] Fixed ProjectGUID

2011-01-07 Thread Sören Freudiger
Hello Is it possible to set the ProjectGUID by CMake? Every time I generate a vcproj file with CMake the ProjectGUID changes. But we need to have a fixed one (because other projects are including the vcproj). Best regards SirAnn -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy

Re: [CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Michael Wild
On 01/07/2011 03:26 PM, Mark Abraham wrote: > On 7/01/2011 11:17 PM, Michael Wild wrote: >> On 01/07/2011 11:36 AM, Mark Abraham wrote: >>> Hi, >>> >>> When using MPI, our project needs to be able to test for the validity of >>> MPI_IN_PLACE (http://redmine.gromacs.org/issues/594). Ideally we could

Re: [CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Mark Abraham
On 7/01/2011 11:17 PM, Michael Wild wrote: On 01/07/2011 11:36 AM, Mark Abraham wrote: Hi, When using MPI, our project needs to be able to test for the validity of MPI_IN_PLACE (http://redmine.gromacs.org/issues/594). Ideally we could use try_compile to compile a simple test program, however we

Re: [CMake] RUNTIME_OUTPUT_DIRECTORY_ has no effect

2011-01-07 Thread David Cole
Sorry, I misread the error message. A GLOBAL property is simply at global scope and does not require a "target name" like a target property does. On Fri, Jan 7, 2011 at 7:32 AM, David Cole wrote: > set_property(GLOBAL requires CMake 2.8 or later. > > > > On Fri, Jan 7, 2011 at 7:08 AM, Martin

Re: [CMake] RUNTIME_OUTPUT_DIRECTORY_ has no effect

2011-01-07 Thread David Cole
If you are having an "in source build" happen where you do not intend it to, then you probably have an unintended CMakeCache.txt in the source tree. Get rid of the build remnants from your source tree and try another out of source build... HTH, David On Fri, Jan 7, 2011 at 7:08 AM, Martin Magnus

Re: [CMake] RUNTIME_OUTPUT_DIRECTORY_ has no effect

2011-01-07 Thread David Cole
set_property(GLOBAL requires CMake 2.8 or later. On Fri, Jan 7, 2011 at 7:08 AM, Martin Magnusson wrote: > 2011-01-07 12:07, Nizar Khalifa Sallem skrev: > > At Fri, 07 Jan 2011 11:11:18 +0100, > > Martin Magnusson wrote: > >> > >> I'm having trouble setting the runtime output directory, especia

Re: [CMake] RUNTIME_OUTPUT_DIRECTORY_ has no effect

2011-01-07 Thread Nizar Khalifa Sallem
At Fri, 07 Jan 2011 13:08:44 +0100, Martin Magnusson wrote: > > 2011-01-07 12:07, Nizar Khalifa Sallem skrev: > > At Fri, 07 Jan 2011 11:11:18 +0100, > > Martin Magnusson wrote: > >> > >> I'm having trouble setting the runtime output directory, especially with > >> multiple configurations. > >> >

Re: [CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Michael Wild
On 01/07/2011 11:36 AM, Mark Abraham wrote: > Hi, > > When using MPI, our project needs to be able to test for the validity of > MPI_IN_PLACE (http://redmine.gromacs.org/issues/594). Ideally we could > use try_compile to compile a simple test program, however we need to be > able to direct the use

Re: [CMake] RUNTIME_OUTPUT_DIRECTORY_ has no effect

2011-01-07 Thread Martin Magnusson
2011-01-07 12:07, Nizar Khalifa Sallem skrev: > At Fri, 07 Jan 2011 11:11:18 +0100, > Martin Magnusson wrote: >> >> I'm having trouble setting the runtime output directory, especially with >> multiple configurations. >> >> I'm using CMake 2.8 on Ubuntu 10.04, with gcc. >> >> My current root CMakeLi

Re: [CMake] RUNTIME_OUTPUT_DIRECTORY_ has no effect

2011-01-07 Thread Martin Magnusson
2011-01-07 11:53, Andreas Pakulat skrev: > On 07.01.11 11:11:18, Martin Magnusson wrote: >> I'm having trouble setting the runtime output directory, especially with >> multiple configurations. >> >> I'm using CMake 2.8 on Ubuntu 10.04, with gcc. >> >> My current root CMakeLists.txt contains >> SET(

[CMake] packaging after success testing

2011-01-07 Thread ycollette . nospam
Hello, A while ago, a question similar to this one was posted, but no answer was given. Is it possible to perform the packaging part of a project only if the testing part has been successfully performed ? Best regards, YC ___ Powered by www.kitware.co

Re: [CMake] control order of custom target as a sub-part of a customized KDE build

2011-01-07 Thread Michael Hertling
On 01/04/2011 09:16 PM, Shawn Rutledge wrote: > I am building a KDE control panel plugin, and there is a requirement > to use a different translation mechanism rather than the default Qt > "tr" macros. So I want to post-process my ui_*.h files to replace > lines like this > > ClearSiteDat

Re: [CMake] RUNTIME_OUTPUT_DIRECTORY_ has no effect

2011-01-07 Thread Nizar Khalifa Sallem
At Fri, 07 Jan 2011 11:11:18 +0100, Martin Magnusson wrote: > > I'm having trouble setting the runtime output directory, especially with > multiple configurations. > > I'm using CMake 2.8 on Ubuntu 10.04, with gcc. > > My current root CMakeLists.txt contains > SET( EXECUTABLE_OUTPUT_PATH ${PROJE

Re: [CMake] suspicious behaviour of FindPkgConfig

2011-01-07 Thread Nizar Khalifa Sallem
At Fri, 07 Jan 2011 08:35:22 +0100, Michael Wild wrote: > > 1. Flann uses CMake, so it should install a FlannConfig.cmake (possibly > in addition to the currently installed flann.pc). This would obsolete > all issues below. > > > 2. Since Flann only comes with a pkg-config module and there's no

Re: [CMake] RUNTIME_OUTPUT_DIRECTORY_ has no effect

2011-01-07 Thread Andreas Pakulat
On 07.01.11 11:11:18, Martin Magnusson wrote: > I'm having trouble setting the runtime output directory, especially with > multiple configurations. > > I'm using CMake 2.8 on Ubuntu 10.04, with gcc. > > My current root CMakeLists.txt contains > SET( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bi

Re: [CMake] RUNTIME_OUTPUT_DIRECTORY_ has no effect

2011-01-07 Thread Andreas Pakulat
On 07.01.11 11:11:18, Martin Magnusson wrote: > I'm having trouble setting the runtime output directory, especially with > multiple configurations. > > I'm using CMake 2.8 on Ubuntu 10.04, with gcc. > > My current root CMakeLists.txt contains > SET( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bi

[CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Mark Abraham
Hi, When using MPI, our project needs to be able to test for the validity of MPI_IN_PLACE (http://redmine.gromacs.org/issues/594). Ideally we could use try_compile to compile a simple test program, however we need to be able to direct the use of the compiler information CMake found using the

[CMake] RUNTIME_OUTPUT_DIRECTORY_ has no effect

2011-01-07 Thread Martin Magnusson
I'm having trouble setting the runtime output directory, especially with multiple configurations. I'm using CMake 2.8 on Ubuntu 10.04, with gcc. My current root CMakeLists.txt contains SET( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin ) which works, although the EXECUTABLE_OUTPUT_PATH is depr