Re: [CMake] [cmake-developers] Bug fix requests for the *next* release of CMake...

2010-08-31 Thread Philip Lowman
David, Thanks for enabling this. If anyone is wondering where to find the "Target Release" and "Fixed In Version" fields, they are under the Advanced Details link for each bug. When you mark a bug as fixed, it prompts you for "Fixed In Version" but the only way to set "Target Release" I can see

Re: [CMake] Categorizing test results displayed via CDash

2010-08-31 Thread Chris Hillery
Check out this article: http://www.kitware.com/blog/home/post/11 and read the article in the Kitware Quarterly that is linked to from there on "CDash subprojects". It's not nearly as clean and straightforward as it should be, IMHO, but it does work. Ceej aka Chris Hillery On Tue, Aug 31, 2010

Re: [CMake] detecting libc version info

2010-08-31 Thread Philip Lowman
On Tue, Aug 31, 2010 at 3:01 PM, Tim St. Clair wrote: > Is there a handy dandy marco for detecting libc details (e.g. version). Probably not. You can use preprocessor checks though. glibc: http://predef.sourceforge.net/prelib.html#sec3 gcc: http://predef.sourceforge.net/precomp.html#sec15 H

Re: [CMake] FindOpenSSL.cmake

2010-08-31 Thread Philip Lowman
Officially, CMake modules are supposed to mark cache variables like this as advanced so they disappear as soon as they are set. Since it is finding DLL files the cache variables are being set and immediately hidden in the advanced section of the cache. You should be able to get at them from the a

[CMake] Categorizing test results displayed via CDash

2010-08-31 Thread Neelima Mehdiratta
I am writing unit tests for our software using the Google test framework. There is only one CMakeLists.txt file at the top-level of the unit test hierarchy, which creates one executable that runs all the tests. I'm using CTest to run the tests and display the results via CDash. The unit tests te

Re: [CMake] Debugging CMAKE_SIZEOF_VOID_P

2010-08-31 Thread U.W. Mechatronics Laboratory
Thanks John for the reminder. It certainly helped troubleshoot it - turns out on that machine I have some goofy UAC thing going on w/ my install of VS and it seems as though cmake would call the compiler but not get anything back because the UAC of Win7 was preventing it from actually runnin

Re: [CMake] Building a project with Subdirs(Qt4 and OpenCascade inside)

2010-08-31 Thread Michael Hertling
On 08/31/2010 03:03 PM, Christian Lohr wrote: > Hi, > I have a more or less complicated program to compile. It's splitted up > in several small libraries, which have seperate directories for header > and source files, and a main applikation. > It compiled, but it ended up with a linker error, seems

[CMake] FindHDF5.cmake and the "hl" versions of hdf5 libs

2010-08-31 Thread James C. Sutherland
I typically have full HDF5 installations on my systems but am now going to a system where the "hl" versions of the hdf5 libraries are not installed. Although I don't need these, it appears that CMake is unwilling to let me proceed without them. I get the following error: CMake Error: The followi

Re: [CMake] [cmake-developers] Bug fix requests for the *next* release of CMake...

2010-08-31 Thread David Cole
Great idea! There is now a roadmap page in Mantis for the CMake project. http://public.kitware.com/Bug/roadmap_page.php It has 33 issues listed as targeted for 2.8.3. 17 of these (51%) are resolved: fixed in 'next' already, or "won't fix"... ever. The remaining 16 shall be fixed (or marked as po

Re: [CMake] Would it be possible to have cmake make final binaries?

2010-08-31 Thread Mark Roden
Good point-- a non-power-user would say that the project 'failed'. But I'm kind of leaning towards the idea that if the project cannot be built from default settings, then yes, that's a problem that should be fixed by the program maintainer. If the user starts messing with settings that also caus

Re: [CMake] Would it be possible to have cmake make final binaries?

2010-08-31 Thread Eric Noulard
2010/8/31 David Cole : > Steps 7 thru 10 on your list may be performed by the command lines: >   cmake --build . --config Release >   cmake --build . --target install --config Release >   (equivalent to the "make; make install" parts of your example command > line) > Causing that to happen in delic

Re: [CMake] Associating files with command

2010-08-31 Thread Ryan Pavlik
You were close: here's a function to handle the wrapping - could stick this in the Findtolua.cmake file that you've hopefully made. function wrap_tolua(outvar) set(outfiles) foreach(in ${ARGN}) get_filename_component(inAbs ${in} ABSOLUTE) get_filename_component(basenam

[CMake] FindOpenSSL.cmake

2010-08-31 Thread Dixon, Shane
I'm having some trouble with the FindOpenSSL.cmake. While troubleshooting, I noticed that it has this line: MARK_AS_ADVANCED(OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES) Yet the OPENSSL_LIBRARIES never show up in the cmake-gui. I'm running 2.8.2 on Windows XP. Can someone tell me if I'm wron

[CMake] Associating files with command

2010-08-31 Thread Anders Backman
Hi all. I have a directory of .pkg files to be processed by tolua. This in turn generates a bunch of cpp files, which I then link into a library. My problem right now is that, I would like to generate a project, where each .pkg is associated with a custom command, so that I in visual studio (for

[CMake] detecting libc version info

2010-08-31 Thread Tim St. Clair
Is there a handy dandy marco for detecting libc details (e.g. version). -- Cheers, Timothy St. Clair ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-

[CMake] Adding dependency using set_source_files_properties

2010-08-31 Thread Jens Mueller
Hi, I've been trying to add manual dependencies using set_source_files_properties. I know that I can add a dependency like this SET_SOURCE_FILES_PROPERTIES(source_file.foo PROPERTIES OBJECT_DEPENDS /path/to/some_depend_file.bar) in a CMakeLists.txt. In my case, I want to add support for a new lan

Re: [CMake] Would it be possible to have cmake make final binaries?

2010-08-31 Thread Michael Wild
On 31. Aug, 2010, at 19:02 , Clinton Stimpson wrote: > On Tuesday, August 31, 2010 09:33:18 am Mark Roden wrote: >> Hi all, >> >> I'm wondering if it would be possible to have CMake bypass IDEs altogether >> and just produce the final, installed results. >> >> Right now, I do this: >> 1) downlo

Re: [CMake] Debugging CMAKE_SIZEOF_VOID_P

2010-08-31 Thread John Drescher
> Cmake specifically is using Visual Studio 9 2008 Win64 as the generator (via > the cmakegui) > Open a "Visual Studio 2008 x64 Win64 Command Prompt". This should exist in the Tools menu for Visual Studio 2008". Then run your batch file inside that. If that fails clear the build folder first. Joh

Re: [CMake] Debugging CMAKE_SIZEOF_VOID_P

2010-08-31 Thread John Drescher
> Yes but this is an issue even before actually compiling code... so VS is not > in the picture at this point in the process. > Yes it is. CMake specifically detects the compiler and uses it to compile test programs to fills in the information for MAKE_SIZEOF_VOID_P. John

Re: [CMake] Would it be possible to have cmake make final binaries?

2010-08-31 Thread Clinton Stimpson
On Tuesday, August 31, 2010 09:33:18 am Mark Roden wrote: > Hi all, > > I'm wondering if it would be possible to have CMake bypass IDEs altogether > and just produce the final, installed results. > > Right now, I do this: > 1) download source > 2) configure source > 3) tweak settings > 4) configu

Re: [CMake] Would it be possible to have cmake make final binaries?

2010-08-31 Thread David Cole
Steps 7 thru 10 on your list may be performed by the command lines: cmake --build . --config Release cmake --build . --target install --config Release (equivalent to the "make; make install" parts of your example command line) Causing that to happen in delicious GUI form would be simple enou

Re: [CMake] Debugging CMAKE_SIZEOF_VOID_P

2010-08-31 Thread John Drescher
> I'm not sure how to do that - the guy that set up our tree/build system has > a batch file written to extract cmake, setup some directories, then call the > cmake gui to configure the tree.  What's thoroughly confusing is that this > seems to work properly on my Win7x64 laptop & on a W2K8x64 Serv

Re: [CMake] Conditional compiling [i.e. OpenMP]

2010-08-31 Thread Raymond Wan
Hi Eric, On Tue, Aug 31, 2010 at 20:59, Eric Noulard wrote: > 2010/8/31 Raymond Wan : >> /* #undef HAVE_OPENMP */ >> I can confirm that OpenMP is being detected because I can see the >> various values being defined in CMakeCache.txt.  HAVE_OPENMP is not in >> this file, though (it should, I pres

Re: [CMake] Debugging CMAKE_SIZEOF_VOID_P

2010-08-31 Thread John Drescher
On Tue, Aug 31, 2010 at 12:17 PM, John Drescher wrote: > On Tue, Aug 31, 2010 at 12:01 PM, U.W. Mechatronics Lab > wrote: >> I am having trouble getting any return value from CMAKE_SIZEOF_VOID_P on one >> particular Win7x64  machine.  If I check out my tree on a different Win7x64 >> machine it se

Re: [CMake] Debugging CMAKE_SIZEOF_VOID_P

2010-08-31 Thread John Drescher
On Tue, Aug 31, 2010 at 12:01 PM, U.W. Mechatronics Lab wrote: > I am having trouble getting any return value from CMAKE_SIZEOF_VOID_P on one > particular Win7x64  machine.  If I check out my tree on a different Win7x64 > machine it seems to properly return a value of 8.  I’m looking for a way of

Re: [CMake] Conditional compiling [i.e. OpenMP] -- solved!

2010-08-31 Thread Raymond Wan
Hi Ryan and Eric, Thank you both for your replies! On Tue, Aug 31, 2010 at 20:10, Ryan Pavlik wrote: >  On 8/31/10 3:40 AM, Raymond Wan wrote: >> I think "SET (HAVE_OPENMP 1)" is wrong, but I don't know what should >> it be.  If it is correct, do I need to initialize it with "SET >> (HAVE_OPENM

[CMake] Debugging CMAKE_SIZEOF_VOID_P

2010-08-31 Thread U.W. Mechatronics Lab
I am having trouble getting any return value from CMAKE_SIZEOF_VOID_P on one particular Win7x64 machine. If I check out my tree on a different Win7x64 machine it seems to properly return a value of 8. I'm looking for a way of debugging why it doesn't seem to be returning a value. I'm currently

[CMake] FindGit.cmake on Windows

2010-08-31 Thread Dixon, Shane
I wasn't sure how to create a patch using git in Windows. Is it possible to modify the next version of CMake to change the FindGit.cmake: From: find_program(GIT_EXECUTABLE NAMES ${git_names} DOC "git command line client" ) To: find_program(GIT_EXECUTABLE NAMES ${git_names}

[CMake] Would it be possible to have cmake make final binaries?

2010-08-31 Thread Mark Roden
Hi all, I'm wondering if it would be possible to have CMake bypass IDEs altogether and just produce the final, installed results. Right now, I do this: 1) download source 2) configure source 3) tweak settings 4) configure source again 5) Probably configure a third time, depending on what CMake wa

[CMake] Building a project with Subdirs(Qt4 and OpenCascade inside)

2010-08-31 Thread Christian Lohr
Hi, I have a more or less complicated program to compile. It's splitted up in several small libraries, which have seperate directories for header and source files, and a main applikation. It compiled, but it ended up with a linker error, seems he couldn't link against OpenCASCADE and Qt properly. I

[CMake] cmake problem with nmake and intel fortran for 64 bit

2010-08-31 Thread Paul Edwards
Hi, * * I'm having a problem with cmake-2.8 (from website) on windows. The cmake command fails detecting the Intel fortran compiler when generating "NMake Makefiles" although it does work for visual studio - see output at end. I would like to get this working with nmake - can anyone help? Or,

[CMake] CMake 2.8.2 + MinGW + Resource images

2010-08-31 Thread norulez
Hello, Did anybody know if the bug with resource images should already work or in which cmake version it is included? Thanks in advance Best Regards NoRulez ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitwar

Re: [CMake] Conditional compiling [i.e. OpenMP]

2010-08-31 Thread Eric Noulard
2010/8/31 Raymond Wan : > > # > FIND_PACKAGE (OpenMP) > > if (OPENMP_FOUND) >  SET (HAVE_OPENMP 1) >  SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") > endif() > # > > and then created a "config.hpp.in" which had this: > > #cmakedefine HAVE_OPENMP 1 > > config.hpp gets genera

Re: [CMake] Conditional compiling [i.e. OpenMP]

2010-08-31 Thread Ryan Pavlik
On 8/31/10 3:40 AM, Raymond Wan wrote: Hi all, I'm still quite new to cmake and am trying to do something I use to do with autotools (took me ages to figure that out :-) ). I guess what I'm trying to do is not specific to OpenMP, though. In my C++ code, I'd like to add: #if HAVE_OPENMP #incl

[CMake] Conditional compiling [i.e. OpenMP]

2010-08-31 Thread Raymond Wan
Hi all, I'm still quite new to cmake and am trying to do something I use to do with autotools (took me ages to figure that out :-) ). I guess what I'm trying to do is not specific to OpenMP, though. In my C++ code, I'd like to add: #if HAVE_OPENMP #include #endif and have this check around ot

Re: [CMake] CMake without C/C++ compiler check.

2010-08-31 Thread Giraudon Cyril
Oh sorry. thanks a lot, Cyril. Le 30/08/2010 13:23, Jed Brown a écrit : > On Mon, 30 Aug 2010 13:11:46 +0200, Giraudon Cyril > wrote: >> Hello, >> >> I'd like to use CMake to build a fortran project (ifort) and >> on my win64 machine, I have no C/C++ compiler. >> >> CMake seems to check alw

Re: [CMake] Using mingw from cygwin terminal (/cygwin directory problems)

2010-08-31 Thread Mike McQuaid
On 31 Aug 2010, at 08:44, Tam Toucan wrote: > I am using cmake cygwin. Is there something I need to do to get it to > generate makefiles that are compatible with mingw32? The problem is that > the makefile contains an absolute path to all sources that is only > visible to cygwin programs. i.e. th

Re: [CMake] Using mingw from cygwin terminal (/cygwin directory problems)

2010-08-31 Thread Mike McQuaid
On 30 Aug 2010, at 20:14, Tam Toucan wrote: > Hi, > I've just started converting my projects from autotools to CMake and I've > hit a simple problem. I want to compile from a cygwin terminal, but using > mingw32 (cygwin gcc has removed the -mno-cygwin option). I'm using > > SET(CMAKE_CXX_COM