Re: [CMake] How to determine the number of processors available from CMake code

2010-10-08 Thread Michael Wild
Would be nice to have this as a module: http://cmake.org/Bug/view.php?id=11302 On 8. Oct, 2010, at 24:41 , David Cole wrote: > Thanks! > > On Thu, Oct 7, 2010 at 6:08 PM, Mark Moll wrote: > >> On OS X, this command might be easier / faster: >> >> sysctl -n hw.ncpu >> >> On Oct 7, 2010, at

[CMake] CPack with MSI support?

2010-10-08 Thread NoRulez
Hello, does CPack have msi support also, or if no, is it planned? Thanks in advance Best Regards NoRulez ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

[CMake] How to depend on an ExternalProject

2010-10-08 Thread Rolf Eike Beer
Hi, I have a problem with ExternalProject and how to depend on that. I'm not absolutely sure I got the CMakeLists.txt right, so I first ask here before filing a bug report. The idea is like this: we have an project that generates a couple of files. In a special configuration of another project we

Re: [CMake] How would I use parallel make on ExternalProjects?

2010-10-08 Thread fatman
> There is one problem with that, which is what I'm trying to address: > load balancing. If your project builds ITK, VTK, and sundry other > prerequisite libraries, it will spawn 4 sequential builds. In > practice this means everything except ITK (which we build with > wrapping on) finishes, and

Re: [CMake] How to depend on an ExternalProject

2010-10-08 Thread Michael Wild
On 8. Oct, 2010, at 10:50 , Rolf Eike Beer wrote: > Hi, > > I have a problem with ExternalProject and how to depend on that. I'm not > absolutely sure I got the CMakeLists.txt right, so I first ask here before > filing a bug report. > > The idea is like this: we have an project that generates a

Re: [CMake] How to depend on an ExternalProject

2010-10-08 Thread Rolf Eike Beer
> > On 8. Oct, 2010, at 10:50 , Rolf Eike Beer wrote: > >> Hi, >> >> I have a problem with ExternalProject and how to depend on that. I'm not >> absolutely sure I got the CMakeLists.txt right, so I first ask here >> before >> filing a bug report. >> >> The idea is like this: we have an project that

Re: [CMake] How to depend on an ExternalProject

2010-10-08 Thread Michael Wild
On 8. Oct, 2010, at 12:13 , Rolf Eike Beer wrote: >> >> On 8. Oct, 2010, at 10:50 , Rolf Eike Beer wrote: >> >>> Hi, >>> >>> I have a problem with ExternalProject and how to depend on that. I'm not >>> absolutely sure I got the CMakeLists.txt right, so I first ask here >>> before >>> filing a

Re: [CMake] Is there a tool pretty much like cmake for Java?

2010-10-08 Thread Andreas Schneider
On Thursday 07 October 2010 21:32:51 Bill Hoffman wrote: > The other issue is VS builds. At one point, I had some magic, cmake > language to custom command converter thing going for this, but I am > thinking it might be broken. If we did a pure custom-command version, > it would work in the IDE'

Re: [CMake] How to depend on an ExternalProject

2010-10-08 Thread Michael Hertling
On 10/08/2010 12:50 PM, Michael Wild wrote: > > On 8. Oct, 2010, at 12:13 , Rolf Eike Beer wrote: > >>> >>> On 8. Oct, 2010, at 10:50 , Rolf Eike Beer wrote: >>> Hi, I have a problem with ExternalProject and how to depend on that. I'm not absolutely sure I got the CMakeLists.t

[CMake] CMake Visual Studio 64bit flag?

2010-10-08 Thread Peter Clemenko
Hello, I'm trying to work on creating a precompiled binary package for a project I'm working on, and I was wondering if there was any way to configure CMake to select a folder based on whether or not the 64bit version of Visual studio was selected for the library path. The library path would be som

Re: [CMake] CMake Visual Studio 64bit flag?

2010-10-08 Thread Michael Jackson
maybe SIZE_OF_VOID_POINTER of whatever that variable is in CMake? ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio On Oct

Re: [CMake] CMake Visual Studio 64bit flag?

2010-10-08 Thread Mateusz Loskot
On 08/10/10 16:42, Michael Jackson wrote: maybe SIZE_OF_VOID_POINTER of whatever that variable is in CMake? In SOCI library, I use something like this: if(UNIX AND CMAKE_SIZEOF_VOID_P EQUAL 4) set(SOCI_LIBDIR "lib64") else() set(SOCI_LIBDIR "lib") endif() Best regards, -- Mateusz Loskot,

Re: [CMake] CPack with MSI support?

2010-10-08 Thread Bill Hoffman
On 10/8/2010 3:32 AM, NoRulez wrote: Hello, does CPack have msi support also, or if no, is it planned? Nothing planned, but if someone wanted to contribute something that would be welcomed. -Bill ___ Powered by www.kitware.com Visit other Kitwar

Re: [CMake] CMake Visual Studio 64bit flag?

2010-10-08 Thread David Cole
Either you've got that reversed, or 4 should be 8... right? lib64 should be for an 8-byte void* ... On Fri, Oct 8, 2010 at 11:48 AM, Mateusz Loskot wrote: > On 08/10/10 16:42, Michael Jackson wrote: > >> maybe SIZE_OF_VOID_POINTER of whatever that variable is in CMake? >> > > In SOCI library,

Re: [CMake] How would I use parallel make on ExternalProjects?

2010-10-08 Thread kent williams
I think what I'm doing isn't clear to you. I have a CMakeLists.txt that is essentially 'sourceless' -- it defines a bunch of CMake variables, and then builds a bunch of prerequisites and applications added with ExternalProject_add. It doesn't have any add_subdirectory,add_executable, add_library e

Re: [CMake] CMake Visual Studio 64bit flag?

2010-10-08 Thread Mateusz Loskot
Yes, you are right. My mistake. Thanks! Mat On 08/10/10 16:51, David Cole wrote: Either you've got that reversed, or 4 should be 8... right? lib64 should be for an 8-byte void* ... On Fri, Oct 8, 2010 at 11:48 AM, Mateusz Loskot mailto:mate...@loskot.net>> wrote: On 08/10/10 16:42, Mic

Re: [CMake] CMake Visual Studio 64bit flag?

2010-10-08 Thread aaron.meadows
Is this not sufficient: (from "Variables That Describe the System") CMAKE_CL_64: Using the 64 bit compiler from Microsoft Set to true when using the 64 bit cl compiler from Microsoft. This is what I'm intending on using, so if this won't work, I'll need to know... Aaron C. Meadows

Re: [CMake] CMake Visual Studio 64bit flag?

2010-10-08 Thread Rolf Eike Beer
Am Friday 08 October 2010 schrieb aaron.mead...@thomsonreuters.com: > Is this not sufficient: (from "Variables That Describe the System") > > CMAKE_CL_64: Using the 64 bit compiler from Microsoft > > Set to true when using the 64 bit cl compiler from Microsoft. > > This is what I'm intending on

Re: [CMake] How would I use parallel make on ExternalProjects?

2010-10-08 Thread Bill Hoffman
On 10/8/2010 11:57 AM, kent williams wrote: I think what I'm doing isn't clear to you. I have a CMakeLists.txt that is essentially 'sourceless' -- it defines a bunch of CMake variables, and then builds a bunch of prerequisites and applications added with ExternalProject_add. It doesn't have any

Re: [CMake] CMake Visual Studio 64bit flag?

2010-10-08 Thread aaron.meadows
Seems to work correctly from my tests: CMakeLists.txt: cmake_minimum_required (VERSION 2.8) project(test CXX) message( STATUS "CMAKE_GENERATOR: ${CMAKE_GENERATOR}") message( STATUS "CMAKE_CL_64: ${CMAKE_CL_64}") c:\dev2\Builds\test\x64>cmake -G "Visual Studio 8 2005" ../. -- C

Re: [CMake] CMake Visual Studio 64bit flag?

2010-10-08 Thread John Drescher
On Fri, Oct 8, 2010 at 12:50 PM, wrote: > Seems to work correctly from my tests: > > > > CMakeLists.txt: > > cmake_minimum_required (VERSION 2.8) > > > > project(test CXX) > > message( STATUS "CMAKE_GENERATOR: ${CMAKE_GENERATOR}") > > message( STATUS "CMAKE_CL_64: ${CMAKE_CL_64}") > > > > > > > >

Re: [CMake] CMake Visual Studio 64bit flag?

2010-10-08 Thread aaron.meadows
Thanks for pointing that out.. not that it effects the example in the slightest... they could have been "Bozo" and "Crusty" and still prove it works. =D Aaron C. Meadows -Original Message- From: John Drescher [mailto:dresche...@gmail.com] Sent: Friday, October 08, 2010 11:52 AM To: Mea

Re: [CMake] Disallowing in-source builds

2010-10-08 Thread aaron.meadows
Here's what I ended up with: function(AssureOutOfSourceBuilds) # make sure the user doesn't play dirty with symlinks get_filename_component(srcdir "${CMAKE_SOURCE_DIR}" REALPATH) get_filename_component(bindir "${CMAKE_BINARY_DIR}" REALPATH) # disallow in-source builds if(${src

[CMake] Basic example of adding an MSVC project with ExternalProject_Add?

2010-10-08 Thread Clifford Yapp
I would like to use the ExternalProject_Add command to add a pre-existing MSVC build system into a CMake generated MSVC project, but I can't seem to find any examples of this and I haven't the least idea what commands to supply for CONFIGURE/BUILD/etc. in order to bring in the MSVC files. Can anyo

[CMake] strip runtime paths from non-targets

2010-10-08 Thread edA-qa mort-ora-y
When copying executables/libraries under Windows CMake does some kind of path stripping. I presume this is to clean up any absolute path references. How can I get this to happen on DLLs which Cmake wasn't responsible for building? That is, I need to copy a DLL built by another build process (not u