Re: [CMake] [cmake-developers] CMake 2.8.12-rc2 FindHDF5 issues

2013-09-19 Thread Orion Poplawski
On 09/19/2013 11:47 AM, Brad King wrote: On 09/17/2013 06:16 PM, Clinton Stimpson wrote: I've narrowed it down to a regression caused by 04d4dc33. The following should fix this: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0f05961f See the commit message for an explanation. Please t

[CMake] try_run or similar to find available Fortran integer kinds

2013-09-19 Thread Zaak Beekman
Caveat: I am somewhat new to CMake. I am programming a library to compute diagnostic statistics on VERY large data sets. (Possibly in parallel too.) The algorithm is numerically stable and online/streaming. The Fortran standard makes no guarantee of what (signed) integer types are available on a g

Re: [CMake] [cmake-developers] CMake 2.8.12-rc2 FindHDF5 issues

2013-09-19 Thread Clinton Stimpson
On Thursday, September 19, 2013 01:47:23 PM Brad King wrote: > On 09/17/2013 06:16 PM, Clinton Stimpson wrote: > > I've narrowed it down to a regression caused by 04d4dc33. > > The following should fix this: > > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0f05961f > > See the commit mess

Re: [CMake] [cmake-developers] CMake 2.8.12-rc2 FindHDF5 issues

2013-09-19 Thread Brad King
On 09/17/2013 06:16 PM, Clinton Stimpson wrote: > I've narrowed it down to a regression caused by 04d4dc33. The following should fix this: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0f05961f See the commit message for an explanation. Please test and let me know. Thanks, -Brad -- Powe

Re: [CMake] correct dependencies of update-if-different generated files?`

2013-09-19 Thread Matthew Woehlke
On 2013-07-29 19:02, Matthew Woehlke wrote: Let's say¹ I have a code generation tool, 'gen', that I am naïvely using to build a library, like so: add_custom_command( OUTPUT a.cpp b.cpp COMMAND gen in.xml DEPENDS in.xml ) add_library(foo a.cpp b.cpp) Now let's say that 'gen' is clever a

[CMake] External library dependency

2013-09-19 Thread Weatherby,Gerard
We have an external library which is not easily "cmakeable" and takes a long time to compile. We have a static copy of the source in our SCCS, so we don't need to fetch etc. What we'd like to have happen is have the code compile if and only if the output libraries are not present. The best I'v

Re: [CMake] Warning in CMake Git HEAD

2013-09-19 Thread Williams, Norman K
It is a typo. This is a warning generated by a very recent development head version of CLang I built. It looks like it was added to CMake by Andy Cedilnik in revision 9314bb; It looks like an upstream typo that just happened never to cause a real-world problem. -- Kent Williams norman-k-willi...@

Re: [CMake] Warning in CMake Git HEAD

2013-09-19 Thread Sean McBride
On Thu, 19 Sep 2013 15:12:54 +, Williams, Norman K said: >This looks like a simple typo. I could fix it and submit a gerrit topic, >but I'm busy with other stuff for the moment. > >Or is this a typo imported from CURL? > >In file included from /scratch/kent/cmake/cmake/Utilities/cmcurl/http.c

Re: [CMake] Warning in CMake Git HEAD

2013-09-19 Thread Sean McBride
On Thu, 19 Sep 2013 17:08:21 +, Williams, Norman K said: >It is a typo. This is a warning generated by a very recent development >head version of CLang I built. My Rogue7 dashboard uses clang trunk, but I just noticed I never switched to a -Weverything + subtractive warning policy like I di

[CMake] Warning in CMake Git HEAD

2013-09-19 Thread Williams, Norman K
This looks like a simple typo. I could fix it and submit a gerrit topic, but I'm busy with other stuff for the moment. Or is this a typo imported from CURL? In file included from /scratch/kent/cmake/cmake/Utilities/cmcurl/http.c:99: /scratch/kent/cmake/cmake/Utilities/cmcurl/parsedate.h:1:9: war

[CMake] Set project to target Win32 in an x64 Solution

2013-09-19 Thread Zamir Khan
I have a solution which contains multiple projects. All of these projects typically target an x64 platform. However, recently I have had to introduce another project which will target Win32/x86. Essentially, this project results in a process that runs on its own and communicates with the rest of th

Re: [CMake] Avoiding absolute paths in toolchain file?

2013-09-19 Thread Eric Noulard
2013/9/19 Johan Holmberg : > Hi! > > I'm trying to use a toolchain file (using -DCMAKE_TOOLCHAIN_FILE=) to > cross compile with CMake. I specify my C compiler with: > > set(CMAKE_C_COMPILER my_c_compiler) > > I have given just the name of the compiler, and rely on CMake to find the > compil

[CMake] Avoiding absolute paths in toolchain file?

2013-09-19 Thread Johan Holmberg
Hi! I'm trying to use a toolchain file (using -DCMAKE_TOOLCHAIN_FILE=) to cross compile with CMake. I specify my C compiler with: set(CMAKE_C_COMPILER my_c_compiler) I have given just the name of the compiler, and rely on CMake to find the compiler via my PATH (and this seems to work). B

Re: [CMake] CMake 2.8.12-rc3 Release.

2013-09-19 Thread Domagoj Saric
Hi, configure_file with NEWLINE_STYLE appends a newline to the end of the file (even if there is none in the original file, check cmMakeFile.cxx line 3521)... -- Domagoj Saric Software Architect www.LittleEndian.com -- Powered by www.kitware.com Please keep messages on-topic and check the CM

Re: [CMake] Compiling with debug info on OSX

2013-09-19 Thread Cristian Bidea
If you're using clang or gcc setting the -g compile flag should do the trick. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g") If you're setting the CMAKE_BUILD_TYPE then you should use the corresponding configuration flags: CMAKE_CXX_FLAGS_DEBUG CMAKE_