Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-14 Thread Alexander Neundorf
On Thursday 14 March 2013, Brad King wrote: On 03/13/2013 05:36 PM, Alexander Neundorf wrote: On Wednesday 13 March 2013, Stephen Kelly wrote: I think Alex' objection is only related to thinking that the case of a header-only-library-with-automoc-generated-cxx-file should be an error.

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-14 Thread Brad King
On 03/14/2013 01:43 PM, Alexander Neundorf wrote: Would you object a check that if a target has at least one C or Fortran source file, but no C++ source file, it should skipped for automoc ? I was thinking about that approach too. Basically if the target has at least one C++ source or *no

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-14 Thread Stephen Kelly
Brad King wrote: On 03/14/2013 01:43 PM, Alexander Neundorf wrote: Would you object a check that if a target has at least one C or Fortran source file, but no C++ source file, it should skipped for automoc ? I was thinking about that approach too. Basically if the target has at least one

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-14 Thread Alexander Neundorf
On Thursday 14 March 2013, Stephen Kelly wrote: Brad King wrote: On 03/14/2013 01:43 PM, Alexander Neundorf wrote: Would you object a check that if a target has at least one C or Fortran source file, but no C++ source file, it should skipped for automoc ? I was thinking about that

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-14 Thread Stephen Kelly
Alexander Neundorf wrote: yes, and I think it's a bug (caused by me). If I was a cmake user and not a developer, I would file a bug report if I would find out that my helloworld.c suddenly links again libstdc++.so My point was that a policy is still needed anyway. Thanks, Steve. -- Powered

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-13 Thread Stephen Kelly
Brad King wrote: On 03/11/2013 07:01 PM, Stephen Kelly wrote: Stephen Kelly wrote: Alexander Neundorf wrote: The patch only avoided that specific situation when it occured with automoc, but the same situation can also happen independent from automoc. Not really, the attached case can only

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-13 Thread Brad King
On 03/12/2013 06:30 PM, Brad King wrote: On 03/12/2013 06:08 PM, Alexander Neundorf wrote: My AutomocFixWithoutQt branch basically reverts the first commit, so automoc is now again only one step, without the temporary vector of targets, without needing additional checks. In this form the

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-13 Thread Stephen Kelly
Brad King wrote: On 03/12/2013 06:30 PM, Brad King wrote: On 03/12/2013 06:08 PM, Alexander Neundorf wrote: My AutomocFixWithoutQt branch basically reverts the first commit, so automoc is now again only one step, without the temporary vector of targets, without needing additional checks. In

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-13 Thread Alexander Neundorf
On Wednesday 13 March 2013, Stephen Kelly wrote: Brad King wrote: ... Can you and Alex agree that fix-automoc-no-qt is sufficient for the upcoming release? I agree that it is sufficient. I think Alex' objection is only related to thinking that the case of a

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-12 Thread Brad King
On 03/11/2013 07:01 PM, Stephen Kelly wrote: Stephen Kelly wrote: Alexander Neundorf wrote: The patch only avoided that specific situation when it occured with automoc, but the same situation can also happen independent from automoc. Not really, the attached case can only crash because of

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-12 Thread Alexander Neundorf
On Tuesday 12 March 2013, Brad King wrote: On 03/11/2013 06:54 PM, Stephen Kelly wrote: Alexander Neundorf wrote: Unfortunately this patch creates bug ( http://public.kitware.com/Bug/view.php?id=13999 ) and doesn't fix the actual problem, the crash is still there. Before this patch,

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-12 Thread Brad King
On 03/12/2013 06:08 PM, Alexander Neundorf wrote: The original use case in this thread has a header-only target whose C++ linker language comes from the automoc source. This preserves that functionality too. I'm not sure this is functionality, and not actually a bug, see below. It worked

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-11 Thread Alexander Neundorf
Hi, On Wednesday 20 February 2013, Stephen Kelly wrote: Alexander Neundorf wrote: On Wednesday 20 February 2013, Stephen Kelly wrote: Brad King wrote: Please fix and add this case to the tests. I've added fix-automoc-linker-language to stage. Alex, could you review please? If

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-11 Thread Alexander Neundorf
On Monday 11 March 2013, Alexander Neundorf wrote: Hi, ... (this is again the backtrace from the earlier, unmodified version). I think instead of avoiding the case where the code crashes, it should not crash. I pushed the branch AutomocFixWithoutQt to stage. It mostly reverts the previous

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-11 Thread Stephen Kelly
Alexander Neundorf wrote: The patch only avoided that specific situation when it occured with automoc, but the same situation can also happen independent from automoc. Not really, the attached case can only crash because of the automoc support built-in in cmake. Can you create a testcase

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-03-11 Thread Stephen Kelly
Stephen Kelly wrote: Alexander Neundorf wrote: The patch only avoided that specific situation when it occured with automoc, but the same situation can also happen independent from automoc. Not really, the attached case can only crash because of the automoc support built-in in cmake. Can

[cmake-developers] linked-usage-cleanup regressed automoc

2013-02-20 Thread Brad King
Steve, Please take a look at this example: $ touch foo.h bar.cpp $ cat CMakeLists.txt cmake_minimum_required(VERSION 2.8.6) project(FOO) find_package(Qt4 REQUIRED) add_library(bar STATIC bar.cpp) set_target_properties(bar PROPERTIES AUTOMOC TRUE) target_link_libraries(bar foo) add_library(foo

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-02-20 Thread Stephen Kelly
Brad King wrote: Please fix and add this case to the tests. I've added fix-automoc-linker-language to stage. Alex, could you review please? Thanks, Steve. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-02-20 Thread Alexander Neundorf
On Wednesday 20 February 2013, Stephen Kelly wrote: Brad King wrote: Please fix and add this case to the tests. I've added fix-automoc-linker-language to stage. Alex, could you review please? If I see it correctly, actually nothing is done to each target between the calls to

Re: [cmake-developers] linked-usage-cleanup regressed automoc

2013-02-20 Thread Stephen Kelly
Alexander Neundorf wrote: On Wednesday 20 February 2013, Stephen Kelly wrote: Brad King wrote: Please fix and add this case to the tests. I've added fix-automoc-linker-language to stage. Alex, could you review please? If I see it correctly, actually nothing is done to each target