[cmake-developers] Canonical include pathes within ninja files

2012-06-07 Thread Claus Klein
Hi Peter,I would like to know your opinion aboutCanonical path'sWhile testing with ninja generator, I found same rules with nonCanonical include pathes.a simple example from my test

Re: [cmake-developers] -GNinja on Windows

2012-06-07 Thread Bill Hoffman
On 6/6/2012 12:08 PM, Peter Kümmel wrote: On 06.06.2012 16:27, Bill Hoffman wrote: I will change the dashboard to use ninja master. Right now it is still using your branch on git and is failing a bunch of tests. Now cmake prepends cmd.exe /c and the branched ninja also, so we have cmd.exe /c

Re: [cmake-developers] conditionals in generator expressions

2012-06-07 Thread Brad King
On 06/05/2012 04:59 PM, Stephen Kelly wrote: So far we don't have agreement about how this should look language-wise as far as I can tell. I agree with David that stuffing it into the strings harms readability. [snip] generator_expression(myGenExpr) [snip] The $GENERATOR:someName could

[cmake-developers] CDash build for MinGW with Ninja

2012-06-07 Thread Peter Kuemmel
With my resent patches CMAKE_RC_COMPILER is also found when MinGW is used. So not all tests fail any more. What about adding a MinGW build with Ninja on CDash? Peter -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro!

Re: [cmake-developers] CDash build for MinGW with Ninja

2012-06-07 Thread Bill Hoffman
On 6/7/2012 10:13 AM, Peter Kuemmel wrote: With my resent patches CMAKE_RC_COMPILER is also found when MinGW is used. So not all tests fail any more. What about adding a MinGW build with Ninja on CDash? Peter I can give it a try at some point. If anyone else wants to contribute one, it is

Re: [cmake-developers] -GNinja on Windows

2012-06-07 Thread Peter Kümmel
On 07.06.2012 16:21, Bill Hoffman wrote: On 6/7/2012 10:08 AM, Peter Kuemmel wrote: I changed the windows dashboard on dash2win64 to use ninja master. Looks better now. Thanks, only 2 left. Do you have an idea why CTestTestTimeout doesn't work? Not sure, might be a random thing. Let's

Re: [cmake-developers] -GNinja on Windows

2012-06-07 Thread Bill Hoffman
On 6/7/2012 10:43 AM, Peter Kümmel wrote: Yes, I also think a solution on the cmake side make things much easier. What about using cmake's build-in dependency parser. AFAIK there is one. Could it be called by the command line? I think it might be quicker to grab the cldep wrapper and try

Re: [cmake-developers] conditionals in generator expressions

2012-06-07 Thread Stephen Kelly
Brad King wrote: On 06/05/2012 04:59 PM, Stephen Kelly wrote: So far we don't have agreement about how this should look language-wise as far as I can tell. I agree with David that stuffing it into the strings harms readability. [snip] generator_expression(myGenExpr) [snip] The

Re: [cmake-developers] conditionals in generator expressions

2012-06-07 Thread Brad King
On 06/07/2012 11:41 AM, Stephen Kelly wrote: Brad King wrote: On 06/05/2012 04:59 PM, Stephen Kelly wrote: generator_expression(myGenExpr) That is an interesting idea to keep in mind for the future but I think the implementation of it is too tricky to be in scope now. That's a little

Re: [cmake-developers] visual studio usage

2012-06-07 Thread J Decker
Okay I saw the comments in the platform scripts about fortran, but maybe a symbol could be added to maybe prefer msbuild; there are a couple like that for InstallSystemRuntimeLibraries or whatever that was... so you can control the behavior. The other alternative might be add additional options

[cmake-developers] [CMake 0013277]: archive_endian.h needs inline fix for Sun WorkShop (SunPro) compiler

2012-06-07 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=13277 == Reported By:Daniel R. Gomez Assigned To:

Re: [cmake-developers] conditionals in generator expressions

2012-06-07 Thread Stephen Kelly
Brad King wrote: On 06/07/2012 11:41 AM, Stephen Kelly wrote: Brad King wrote: On 06/05/2012 04:59 PM, Stephen Kelly wrote: generator_expression(myGenExpr) That is an interesting idea to keep in mind for the future but I think the implementation of it is too tricky to be in scope now.

Re: [cmake-developers] conditionals in generator expressions

2012-06-07 Thread Brad King
On 06/07/2012 01:25 PM, Stephen Kelly wrote: Although the questions are rhetorical, I'll answer them anyway to clarify the intention of the proposal. I'm not trying to push my proposal, but I want to make sure it's understood :). The reason I said they're rhetorical is I'm not interested in

Re: [cmake-developers] Canonical include pathes within ninja files

2012-06-07 Thread Claus Klein
Hi Peter,It seem not so important, but is it wanted that ninja generator creates relative targets to PROJECT_BINARY_DIR?claus-kleins-macbook-pro:Example clausklein$ ninja -t query Hello/libHello.a Hello/libHello.a: input: CXX_STATIC_LIBRARY_LINKER Hello/CMakeFiles/Hello.dir/hello.o outputs:

Re: [cmake-developers] Canonical include pathes within ninja files

2012-06-07 Thread Peter Kümmel
On 07.06.2012 20:44, Claus Klein wrote: Hi Peter, It seem not so important, but is it wanted that ninja generator creates relative targets to PROJECT_BINARY_DIR? claus-kleins-macbook-pro:Example clausklein$ ninja -t query Hello/libHello.a Hello/libHello.a: input: CXX_STATIC_LIBRARY_LINKER

[cmake-developers] [CMake 0013280]: setting CMAKE_C_COMPILER and CMAKE_CXX_COMPILER breaks find_package

2012-06-07 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=13280 == Reported By:Alex Herrmann Assigned To:

Re: [cmake-developers] -GNinja on Windows

2012-06-07 Thread Peter Kümmel
Guessing configuration NoConfig Start 82: BuildDepends 1/1 Test #82: BuildDepends . Passed5.06 sec ;) Bill, this was a great idea with cldeps! Only small patches for cldeps and cmake and we now have dependency tracking for msvc. A cldeps binary is here:

Re: [cmake-developers] conditionals in generator expressions

2012-06-07 Thread Stephen Kelly
Brad King wrote: On 06/07/2012 01:25 PM, Stephen Kelly wrote: Although the questions are rhetorical, I'll answer them anyway to clarify the intention of the proposal. I'm not trying to push my proposal, but I want to make sure it's understood :). The reason I said they're rhetorical is I'm

Re: [cmake-developers] -GNinja on Windows

2012-06-07 Thread Bill Hoffman
On 6/7/2012 5:46 PM, Peter Kümmel wrote: Guessing configuration NoConfig Start 82: BuildDepends 1/1 Test #82: BuildDepends . Passed 5.06 sec ;) Bill, this was a great idea with cldeps! Only small patches for cldeps and cmake and we now have dependency tracking for msvc.

Re: [CMake] choosing specific version of a library with find_package (i.e. choosing macports in /opt/local over system default in /usr)

2012-06-07 Thread Rolf Eike Beer
Am Mittwoch, 6. Juni 2012, 16:15:52 schrieb Natalie Tasman: Andreas, thank you for your help. Not surprisingly (for someone new to cmake) I was getting tripped up with the cmake cache, in part. Here's what I've found using cmake 2.8.8: 0) One can get tripped up working with the both GUI and

Re: [CMake] Mastering CMake: which cmake version?

2012-06-07 Thread Thompson, K T
On Wednesday, June 06, 2012 9:56 PM, Dan Kegel d...@kegel.com wrote: I worked through a few tiny examples myself while I was learning; they're online at https://code.google.com/p/winezeug/source/browse/#svn%2Ftrunk%2Fcmake_exa mples They're kind of crappy, but at least they're very small,

Re: [CMake] Mastering CMake: which cmake version?

2012-06-07 Thread Bill Hoffman
On 6/7/2012 10:24 AM, Thompson, K T wrote: On Wednesday, June 06, 2012 9:56 PM, Dan Kegeld...@kegel.com wrote: Working through examples is the most important feature of the text. I think the tutorial found at http://www.cmake.org/cmake/help/cmake_tutorial.html is the same or similar to those

Re: [CMake] find_package: how to require same directory prefix for both lib and header files?

2012-06-07 Thread Mathias Gaunard
On 07/06/2012 01:20, Natalie Tasman wrote: Using cmake 2.8.8, I know that I can add backup or fallback search directories for find_package, using INCLUDE_DIRECTORIES(/opt/local/include) LINK_DIRECTORIES(/opt/local/lib) In this case, cmake first searches its default paths and THEN the

[CMake] CMakeCache.txt, MSVC generator, and automatic re-configuration

2012-06-07 Thread Clifford Yapp
I noticed when doing a recent test of our build with CMake 2.8.8 and MSVC that the CMakeCache.txt file seems to be getting changes applied to it during the generation step (primarily a lot of additions with the comment Stored GUID, seemingly related to custom commands/targets.) One of the things

Re: [CMake] CMakeCache.txt, MSVC generator, and automatic re-configuration

2012-06-07 Thread Bill Hoffman
On 6/7/2012 12:05 PM, Clifford Yapp wrote: I noticed when doing a recent test of our build with CMake 2.8.8 and MSVC that the CMakeCache.txt file seems to be getting changes applied to it during the generation step (primarily a lot of additions with the comment Stored GUID, seemingly related to

[CMake] Links to online documentation of CMake broken

2012-06-07 Thread Andreas Schuh
Hi, I noticed that the CMake documentation online has been updated and the URLs have changed. The main links are correctly rewritten to the new URLs, but the references to particular sections of the documents are discarded during this rewrite. This breaks many links in my documentation where I

Re: [CMake] Links to online documentation of CMake broken

2012-06-07 Thread Brad King
On 06/07/2012 02:06 PM, Andreas Schuh wrote: For example, the link http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:find_package is rewritten to http://www.cmake.org/cmake/help/v2.8.8/cmake.html instead of http://www.cmake.org/cmake/help/v2.8.8/cmake.html#command:find_package. It

Re: [CMake] Links to online documentation of CMake broken

2012-06-07 Thread David Cole
It doesn't work in Safari either, from my Mac or from my iPad On Thu, Jun 7, 2012 at 2:46 PM, Brad King brad.k...@kitware.com wrote: On 06/07/2012 02:06 PM, Andreas Schuh wrote: For example, the link http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:find_package is rewritten to

Re: [CMake] Links to online documentation of CMake broken

2012-06-07 Thread Andreas Schuh
I see. I am using Safari 5.1.7 on Mac OS X 10.6.8. On Thu, Jun 7, 2012 at 3:51 PM, David Cole david.c...@kitware.com wrote: It doesn't work in Safari either, from my Mac or from my iPad On Thu, Jun 7, 2012 at 2:46 PM, Brad King brad.k...@kitware.com wrote: On 06/07/2012 02:06 PM, Andreas

Re: [CMake] find_package: how to require same directory prefix for both lib and header files?

2012-06-07 Thread Natalie Tasman
Those commands are from my CMakeLists.txt file, before find_packages was called. -Natalie On Thu, Jun 7, 2012 at 3:03 AM, Mathias Gaunard mathias.gaun...@ens-lyon.org wrote: On 07/06/2012 01:20, Natalie Tasman wrote: Using cmake 2.8.8, I know that I can add backup or fallback search

Re: [CMake] choosing specific version of a library with find_package (i.e. choosing macports in /opt/local over system default in /usr)

2012-06-07 Thread Natalie Tasman
Thank you for your detailed reply, Rolf. The code you've included looks to me like the similar complexity of the code I've seen in the FindModulexxx.cmake files-- it looks like a solution for this one specific library, but perhaps one I'd have to replicate for every library used in the project.

Re: [CMake] choosing specific version of a library with find_package (i.e. choosing macports in /opt/local over system default in /usr)

2012-06-07 Thread Michael Jackson
opinionI think the complexity is brought about by using MacPorts or Fink. If you simply compile the libraries yourself instead of letting MacPorts do it and install the libraries in /usr/local my guess your experience may be better./opinion Not sure which libraries you are using from MacPorts

[CMake] Case-insensitive string compare

2012-06-07 Thread Robert Dailey
How can I perform a case-insensitive string comparison? I basically need to do this: set( file Makefile ) if( file STREQUAL makefile ) endif() The above condition should PASS, since I want to ignore case, but as of right now it seems STREQUAL is case-sensitive. I need to do this without

Re: [CMake] Case-insensitive string compare

2012-06-07 Thread David Cole
You can't. You have to use TOLOWER and add an extra variable if you can't mutate your existing variable value... set( file Makefile ) string( TOLOWER ${file} file_lower ) if( file_lower STREQUAL makefile ) ... On Thu, Jun 7, 2012 at 6:37 PM, Robert Dailey rcdailey.li...@gmail.comwrote: How

[CMake] CMAKE_CURRENT_SOURCE_DIR showing up in include directories

2012-06-07 Thread Robert Dailey
For some reason, I'm seeing CMAKE_CURRENT_SOURCE_DIR (its value) show up in my list of include directories for some of the visual studio 2008 projects that CMake generates. I'm not explicitly including it in my call to include_directories(), so I'm not sure what is doing it. I debug the code that

Re: [CMake] CMAKE_CURRENT_SOURCE_DIR showing up in include directories

2012-06-07 Thread Robert Dailey
Also, CMAKE_INCLUDE_CURRENT_DIR is not enabled. In addition, I do not see the current *binary* directory included in the list of include directories (which would appear if I had CMAKE_INCLUDE_CURRENT_DIR enabled) On Thu, Jun 7, 2012 at 7:56 PM, Robert Dailey rcdailey.li...@gmail.comwrote:

Re: [CMake] CMAKE_CURRENT_SOURCE_DIR showing up in include directories

2012-06-07 Thread Robert Dailey
I think I might know what it is... I do the following: include_directories( Z ) add_library( A ) include_directories( A ) # Include A's include directory add_library(B) # B depends on A, and thus includes its header directory My assumption was that, at configuration time, a snapshot of the

[Cmake-commits] CMake branch, next, updated. v2.8.8-3054-g1dc41a2

2012-06-07 Thread Stephen Kelly
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 1dc41a22bcc63cfc65565b5b6794347ce514a469 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.8-3060-g689459c

2012-06-07 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 689459cc81d46bc87540a96e88712c6998945ba9 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.8-3062-g8e4992d

2012-06-07 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 8e4992d0c6ac84b2678ab8807c1de13efc66ebb4 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.8-259-g03deea0

2012-06-07 Thread Kitware Robot
Stamp diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index b43affd..1bfc561 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -2,5 +2,5 @@ SET(CMake_VERSION_MAJOR 2) SET(CMake_VERSION_MINOR 8) SET(CMake_VERSION_PATCH 8) -SET(CMake_VERSION_TWEAK 20120607