[cmake-developers] [CMake 0013591]: Ninja generator fail with multi-line COMMENT in custom command

2012-10-16 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=13591 == Reported By:Eric NOULARD Assigned To:

Re: [cmake-developers] Bug introduced in generate-time target checking code

2012-10-16 Thread Stephen Kelly
Stephen Kelly wrote: Stephen Kelly wrote: Stephen Kelly wrote: None of the outputs have a backtrace. Any idea why? Can a backtrace be provided? Reading the code, I'm not seeing which iteration is going past the end. I added some asserts and found that the problem is in iterating over

Re: [cmake-developers] patch for cmake that adds a new timestamp command

2012-10-16 Thread David Cole
I had to do this to get the bootstrap version of CMake to work (and the BootstrapTest to pass): $ git diff diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 9d46355..8bf6c40 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -264,8 +264,6 @@ set(SRCS cmTarget.cxx

Re: [cmake-developers] Bug introduced in generate-time target checking code

2012-10-16 Thread Brad King
On 10/16/2012 08:43 AM, Stephen Kelly wrote: Still, some of the platforms fail the test, and don't give any information about why: http://open.cdash.org/testSummary.php?project=1name=GeneratorExpressiondate=2012-10-16 Can someone please provide more information (backtrace or further

[cmake-developers] [CMake 0013592]: Inefficient Ninja DAG with add_custom_command

2012-10-16 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=13592 == Reported By:Frank Miller Assigned To:

Re: [cmake-developers] patch for cmake that adds a new timestamp command

2012-10-16 Thread Nils Gladitz
I certainly wouldn't mind though I'm not sure what that means. Do the changes in next still potentially make it into 2.8.10? Brad mentioned this would be on the TODO list for after 2.8.10. I've tried to run all tests successfully before submitting but I can't tell if any of those were called

[cmake-developers] Best practices questions

2012-10-16 Thread Petr Kmoch
Hi, I tried submitting my first patch recently (Issue 0013587) and I have a few follow-up questions regarding best practices: 1) Looking at the dashboard, I apparently forgot to quote a path somewhere in the test and it failed on spaces. What is the preferred way for me to provide a fix for the

Re: [cmake-developers] Best practices questions

2012-10-16 Thread Brad King
On 10/16/2012 10:36 AM, Petr Kmoch wrote: 1) Looking at the dashboard, I apparently forgot to quote a path somewhere in the test and it failed on spaces. What is the preferred way for me to provide a fix for the tests? A new commit normally continuing history of the patch as I submitted it?

Re: [cmake-developers] EXCLUDE_FROM_DEFAULT_BUILD testing

2012-10-16 Thread Brad King
On 10/16/2012 11:04 AM, Brad King wrote: I tested it locally on VS 6, 7.1, 8, 9, 10, and 11 all with spaces in the path. I need to investigate the failures on the dashboard to identify the problem. Since we're trying to keep the dashboard as clean as possible right now (to more directly test

Re: [cmake-developers] patch for cmake that adds a new timestamp command

2012-10-16 Thread David Cole
On Tue, Oct 16, 2012 at 10:12 AM, Nils Gladitz glad...@sci-vis.de wrote: I certainly wouldn't mind though I'm not sure what that means. Do the changes in next still potentially make it into 2.8.10? Going into 'next' is how stuff gets tested on the dashboards, and then later Brad and I merge

Re: [cmake-developers] patch for cmake that adds a new timestamp command

2012-10-16 Thread Nils Gladitz
Ah that might explain it ... I may have been using nmake on Windows and ninja on linux. Thanks! Nils On 10/16/2012 05:27 PM, David Cole wrote: On Tue, Oct 16, 2012 at 10:12 AM, Nils Gladitz glad...@sci-vis.de wrote: I certainly wouldn't mind though I'm not sure what that means. Do the

[cmake-developers] [CMake 0013593]: CMake mistakenly says what is newer

2012-10-16 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=13593 == Reported By:Vadim Zhukov Assigned To:

Re: [cmake-developers] Best practices questions

2012-10-16 Thread Benjamin Eikel
Hello, Am Dienstag, 16. Oktober 2012 um 16:36:49 schrieb Petr Kmoch: 2) Is there a code style document I could read somewhere? I now understand line width is preferred at 79 columns max. and I believe I've figured out brace indenting; anything else I should follow? for writing CMake code I

Re: [cmake-developers] [CMake] Random behavior of CTEST_USE_LAUNCHERS

2012-10-16 Thread Brad King
On 10/16/2012 03:09 PM, Nils Gladitz wrote: Well what would be awesome is having the launcher extract individual diagnostic messages. Limitations of that kind of log scraping was precisely the reason we created CTEST_USE_LAUNCHERS in the first place. At most CTest should add markup CDash can

Re: [cmake-developers] [CMake] Random behavior of CTEST_USE_LAUNCHERS

2012-10-16 Thread David Cole
Well, the mixing of lines of output from parallel compiles was the main reason log scraping didn't work well. At least with the launchers, we'd be able to scrape from a single output stream associated with a single build step and we wouldn't have the mixing of lines problem anymore. Nils has a

[cmake-developers] Bugs on the roadmap

2012-10-16 Thread David Cole
The following bugs are on the roadmap (still in the 2.8.10 section), even though they are unassigned: http://public.kitware.com/Bug/view.php?id=8170 http://public.kitware.com/Bug/view.php?id=9905 http://public.kitware.com/Bug/view.php?id=11536 http://public.kitware.com/Bug/view.php?id=11785

Re: [cmake-developers] Bugs on the roadmap

2012-10-16 Thread David Cole
Thanks, Eike. Note that I am not asking *who* should be looking at these bugs. I am asking if anyone is *actually* looking at them at all If you are not looking at them, no need for a response. If you are looking at them, please assign them to yourself. If nobody replies or claims these

Re: [CMake] Cross compiling from linux to windows using wine-based visual studio compilers

2012-10-16 Thread Alan W. Irwin
On 2012-10-15 21:46-0700 Daniel Russel wrote: On Oct 15, 2012, at 9:35 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: On 2012-10-15 21:02-0700 Daniel Russel wrote: I'm trying to get cross compilation of a simple library working to build a windows library on a linux box using the

[CMake] cmake + ninja + CMAKE_TOOLCHAIN_FILE fails

2012-10-16 Thread Guilherme
Hi! When using 'cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/m3.cmake' with the makefile generator this works prefectly but when using it with 'cmake -GNinja .. -DCMAKE_TOOLCHAIN_FILE=../cmake/m3.cmake' it fails with the following message: cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=../cmake/m3.cmake

Re: [CMake] add_custom_command

2012-10-16 Thread Michael Wild
On 10/15/2012 08:20 PM, Totte Karlsson wrote: set( resultFileFolder ${PROJECT_SOURCE_DIR}/wiki/reports) set( resultFile ${resFileFolder}/tests_auto.xml) First things first: You should *never* pollute your source tree, always output to the build tree. This is part of a google code project

Re: [CMake] Same effect as g++ -bundle ?

2012-10-16 Thread Michael Wild
On 10/16/2012 02:06 AM, digitalriptide wrote: I need to create a Mach-o bundle format file. With g++, for example, I can do the following g++ -o helloWorld.bundle -bundle helloWorld.o given some object file. Is there some way to do this from cmake? I've looked at the documentation for

[CMake] Adding dependencies for static libraries

2012-10-16 Thread Robert Bielik
Hi all, I haven't found the answer to this: I have a static library A that uses static library B, but when I create an executable C I only want to link with A. In Visual Studio this is accomplished by adding library B to Additional Dependencies (Librarian/General), but how can I make CMake

Re: [CMake] Adding dependencies for static libraries

2012-10-16 Thread Titus von Boxberg
Am 16.10.2012 12:43, schrieb Robert Bielik: Hi all, I haven't found the answer to this: I have a static library A that uses static library B, but when I create an executable C I only want to link with A. AFAIK you have to link C also with B. You might add a target_link_libraries(C B) in C's

[CMake] How to specify that install target doesn't depend on some test targets

2012-10-16 Thread Jérôme Reybert
In my edit/compile/install/test process (where test is out of the CMake scope), I would like to be able to do a: make mylib make install without building all the test suite. BUT (there's a but), make all still have to build the test suite. Is there a way to do that? My understanding is that

Re: [CMake] CMake rebuilds every time

2012-10-16 Thread David Cole
What does your CMakeLists look like? Only the necessary rebuild steps should be taken on an incremental build. How do you invoke a rebuild? (Just typing 'make' or some other mechanism?) On Mon, Oct 15, 2012 at 6:22 AM, Arindam Mukherjee arindam.muker...@gmail.com wrote: Hi, I have a

Re: [CMake] Adding dependencies for static libraries

2012-10-16 Thread Robert Bielik
Titus von Boxberg skrev 2012-10-16 13:20: Actually, target_link_libraries(C B) puts B into the Additional Dependencies of the VC project generated for C. Unfortunately that doesn't cut it. target_link_libraries adds the build dependency, but it does not list the lib files in Additional

Re: [CMake] Adding dependencies for static libraries

2012-10-16 Thread Titus von Boxberg
Am 16.10.2012 17:53, schrieb Robert Bielik: Titus von Boxberg skrev 2012-10-16 13:20: Actually, target_link_libraries(C B) puts B into the Additional Dependencies of the VC project generated for C. Unfortunately that doesn't cut it. target_link_libraries adds the build dependency, but it does

Re: [CMake] Setting test environment on windows

2012-10-16 Thread David Cole
The following example demonstrates a way for you to achieve what you need: cmake_minimum_required(VERSION 2.8) project(t1) include(CTest) add_test(NAME test01 COMMAND ${CMAKE_COMMAND} -E environment) set_property(TEST test01 APPEND PROPERTY ENVIRONMENT Z1ENV=1;2;3 Z2ENV=a;b;c)

Re: [CMake] ExternalProjects with Visual Studio

2012-10-16 Thread David Cole
If you want real vcxproj references, then use add_subdirectory instead of ExternalProject to build things directly. Or is there some reason you can't do that? If we made real vcxproj files directly, then we'd have to run configure on all the sub-projects at the outer project configure time.

Re: [CMake] Adding dependencies for static libraries

2012-10-16 Thread Robert Bielik
Titus von Boxberg skrev 2012-10-16 19:11: That wasn't clear from your first post. Yes, your're right, sorry 'bout that. I doubt that this is the intended behaviour of target_link_libraries. Nominally target_link_libraries isn't used at all for static libs, but if it should be, I'd expect

[CMake] set_target_properties called twice

2012-10-16 Thread Eric Clark
Hello, I am currently having trouble with set_target_properties(...). I am trying to call it twice to set two different values for the same property. The first call I make looks like this: set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS /ENTRY:mainCRTStartup) Then, I call it

Re: [CMake] set_target_properties called twice

2012-10-16 Thread Miller, Frank
I think this is intended. The semantics are the same as the set function. You can use set_property with the APPEND or APPEND_STRING option to do what you want. Frank From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Eric Clark Sent: Tuesday, October 16, 2012 2:53 PM

Re: [CMake] set_target_properties called twice

2012-10-16 Thread David Cole
On Tue, Oct 16, 2012 at 3:53 PM, Eric Clark ecl...@ara.com wrote: Hello, I am currently having trouble with set_target_properties(…). I am trying to call it twice to set two different values for the same property. The first call I make looks like this:

Re: [CMake] set_target_properties called twice

2012-10-16 Thread Eric Clark
Frank, Thank you for such a quick reply. However, this is not working either. It is correctly adding the value to my list for that property, but now it is using it as the whole value in Visual Studio. Here is what I have now for the first call: set_target_properties(${PROJECT_NAME} PROPERTIES

Re: [CMake] set_target_properties called twice

2012-10-16 Thread David Cole
Try APPEND_STRING with a leading space in the string... On Tue, Oct 16, 2012 at 4:19 PM, Eric Clark ecl...@ara.com wrote: Frank, Thank you for such a quick reply. However, this is not working either. It is correctly adding the value to my list for that property, but now it is using it as

Re: [CMake] set_target_properties called twice

2012-10-16 Thread Eric Clark
David and Frank, Thank you so much! That worked perfectly! I really really appreciate your help, I have been pounding away at this for days now... I should have just asked you guys in the first place. Thanks, Eric -Original Message- From: David Cole [mailto:david.c...@kitware.com]

Re: [CMake] how to build cmake with mingw and msys?

2012-10-16 Thread Alan W. Irwin
On 2012-08-16 08:42-0700 Alan W. Irwin wrote: I am not in a position to do MinGW/MSYS experiments on the Wine platform at the moment, but once that is possible (should be a couple of weeks from now) I will attempt to confirm on that platform that the bootstrap method of building CMake works for

[CMake] Ralph Barth/AEH/DBS/GDB ist außer Haus. Original subject: 'CMake Digest, Vol 102, Issue 33'

2012-10-16 Thread Ralph . Barth
Ralph Barth will be out of the office starting 17/10/2012 and will be returning on 23/10/2012. Ich werde Ihre Nachrichten nach meiner Rückkehr beantworten. WLLM related questions pls. contact Sebastian Neusüß and Jens Keil. Theo Price Feed from EDRE pls contact Jens Keil

[Cmake-commits] CMake branch, master, updated. v2.8.9-535-g5ca5a09

2012-10-16 Thread Kitware Robot
) +set(CMake_VERSION_TWEAK 20121016) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) hooks/post-receive -- CMake

[Cmake-commits] CMake branch, next, updated. v2.8.9-1102-g96d3377

2012-10-16 Thread David Cole
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 96d3377e3f15374adbe4141187cd8d037bb93683 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.9-1104-g0714361

2012-10-16 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 07143613c21480b27691358128de269495a724da (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.9-1107-gba089c0

2012-10-16 Thread Aleksey Avdeev
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 ba089c0be44c52fad406578bd08879a2c2ef5f99 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.9-1111-gb6ffadb

2012-10-16 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 b6ffadb60ab574d68112d8944769871997762c2c (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.9-1113-gbbcbc26

2012-10-16 Thread David Cole
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 bbcbc26135ddaf38a8572f2dc7117011d86e1bf8 (commit) via