Re: [CMake] Fortran MinGW on Windows

2013-06-03 Thread Leek, Jim
>> * Can you post a complete source example where it fails? >> >> What would you like exactly? Do you want me to make a reproducer? >Ideally we'd like a minimal example that re-produces the failure. Sheesh, I spent a bunch of time on a reproducer, but it doesn't build on Linux either. My gue

Re: [CMake] CDT generator help: path discovery and other items

2013-06-03 Thread Olaf Peter
Eclipse does have some issues, where cmake simply cannot help. Some settings are stored neither in the .project nor in the .cproject files, but inside the workspace metedata, which cmake cannot touch (because it is somewhere else, it is binary, undocumented, etc.). What are this for issues? Wher

Re: [CMake] write file if different?

2013-06-03 Thread Matthew Woehlke
On 2013-05-28 16:07, Matthew Woehlke wrote: Is there a built-in way to write a string to a file (a la FILE(WRITE)) that will only write the file if the content would be different? (Or does FILE(WRITE) already work this way despite no obvious hint in the documentation that it does?) Right now I a

Re: [CMake] CDT generator help: path discovery and other items

2013-06-03 Thread Alexander Neundorf
On Monday 03 June 2013, Dixon, Joel L. wrote: > I'm new to CMake, and loving it. I'm using version 2.8.11 and have a > couple issues with the CDT generator. > > > > First, there's really no definitive help (that I've found) for the CDT > generator. The HTML generator just simply mentions the g

[CMake] Spaces in variable values

2013-06-03 Thread Daniel Russel
I'm running into trouble getting paths with spaces in them to propagate cleanly through my cmake scripts and end up with a lot of thrashing with changes that work with one cmake version/generator and then fail with another. Does anyone have rules that they use to write cmake files that result in co

[CMake] CDT generator help: path discovery and other items

2013-06-03 Thread Dixon, Joel L.
I'm new to CMake, and loving it. I'm using version 2.8.11 and have a couple issues with the CDT generator. First, there's really no definitive help (that I've found) for the CDT generator. The HTML generator just simply mentions the generator, it doesn't mention any of the options that I'v

[CMake] ExternalProject_Add with different generators

2013-06-03 Thread Andrew Hundt
I've run into a problem where a CMake script that worked with make, xcode, and ninja generators no longer works for XCode after adding ExternalProject_Add to build libpng using their provided CMakeLists.txt as an external. It does not appear to build the correct library files, and I believe this is

Re: [CMake] Help including dylib into cmake build for xcode

2013-06-03 Thread Frankie Chan
It looks like i got it to work, you were right on the target being empty. Thx! -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Frankie Chan Sent: June-03-13 10:23 AM To: Andreas Mohr; cmake@cmake.org Subject: Re: [CMake] Help including dylib

Re: [CMake] Help including dylib into cmake build for xcode

2013-06-03 Thread Frankie Chan
Maybe this will clear up what i was trying to do and how i got to that error. Basically i was trying to use this macro to search for sqlite3: macro (FindSQLite3) # Look for the library. # find_path(SQLITE3_INCLUDE_DIR NAMES libsqlite3) find_path(SQLITE3_INCLUDE_DIR NAMES sqlite3.h

Re: [CMake] Fortran MinGW on Windows

2013-06-03 Thread Brad King
On 05/31/2013 04:49 PM, Leek, Jim wrote: > CmakeCXXCompiler.cmake: > set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES > "stdc++;mingw32;moldname;mingwex;msvcrt;advapi32;shell32;user32;kernel32;mingw32;moldname;mingwex;msvcrt") > > CmakeFortranCompiler.cmake: > set(CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES > "g

Re: [CMake] Configure never ends when changing compiler

2013-06-03 Thread David Demelier
2013/6/3 Benjamin Eikel : > Am Montag, 3. Juni 2013, 12:08:19 schrieb David Demelier: >> Hi there, >> >> After doing a CMake generation, if I try to change the C compiler by >> doing cmake -DCMAKE_C_COMPILER=/usr/bin/clang it configures again but >> never ends, see : >> >> Installation directories:

Re: [CMake] Configure never ends when changing compiler

2013-06-03 Thread Benjamin Eikel
Am Montag, 3. Juni 2013, 12:08:19 schrieb David Demelier: > Hi there, > > After doing a CMake generation, if I try to change the C compiler by > doing cmake -DCMAKE_C_COMPILER=/usr/bin/clang it configures again but > never ends, see : > > Installation directories: > PREFIX /usr/l

Re: [CMake] Configure never ends when changing compiler

2013-06-03 Thread Nils Gladitz
I think this was fixed in 2.8.11: http://public.kitware.com/Bug/view.php?id=13756 Nils On 06/03/2013 12:08 PM, David Demelier wrote: Hi there, After doing a CMake generation, if I try to change the C compiler by doing cmake -DCMAKE_C_COMPILER=/usr/bin/clang it configures again but never ends,

[CMake] Configure never ends when changing compiler

2013-06-03 Thread David Demelier
Hi there, After doing a CMake generation, if I try to change the C compiler by doing cmake -DCMAKE_C_COMPILER=/usr/bin/clang it configures again but never ends, see : Installation directories: PREFIX /usr/local MANDIR /usr/local/share/man DOCDIR