Re: [cmake-developers] ADDITIONAL_MAKE_CLEAN_FILES only works in Makefile generators / automoc cleaning problem

2013-07-18 Thread Brad King
On 05/06/2013 03:57 PM, Alexander Neundorf wrote: On Monday 06 May 2013, Brad King wrote: that the code path you modified is not even executed for VS anymore. You'll have to generalize the addition of the custom command to work in both code paths. I'll do that. Alex, this has been sitting

Re: [cmake-developers] ADDITIONAL_MAKE_CLEAN_FILES only works in Makefile generators / automoc cleaning problem

2013-05-06 Thread Brad King
On 05/02/2013 05:54 PM, Alexander Neundorf wrote: I updated the branch on stage. The moc file is now added as source to the automoc target. There is now: * the normal target depends on the automoc target * the moc cpp file is a source file of both the normal and the automoc target Okay, so

Re: [cmake-developers] ADDITIONAL_MAKE_CLEAN_FILES only works in Makefile generators / automoc cleaning problem

2013-05-06 Thread Alexander Neundorf
On Monday 06 May 2013, Brad King wrote: On 05/02/2013 05:54 PM, Alexander Neundorf wrote: I updated the branch on stage. The moc file is now added as source to the automoc target. There is now: * the normal target depends on the automoc target * the moc cpp file is a source file of both

Re: [cmake-developers] ADDITIONAL_MAKE_CLEAN_FILES only works in Makefile generators / automoc cleaning problem

2013-05-02 Thread Alexander Neundorf
On Tuesday 30 April 2013, Brad King wrote: On 04/29/2013 05:44 PM, Alexander Neundorf wrote: On Monday 29 April 2013, Brad King wrote: VS needs to know that the file is the output of a custom command. In order for CMake to tell VS about this, the file needs to be listed as an OUTPUT in

Re: [cmake-developers] ADDITIONAL_MAKE_CLEAN_FILES only works in Makefile generators / automoc cleaning problem

2013-04-30 Thread Brad King
On 04/29/2013 05:44 PM, Alexander Neundorf wrote: On Monday 29 April 2013, Brad King wrote: VS needs to know that the file is the output of a custom command. In order for CMake to tell VS about this, the file needs to be listed as an OUTPUT in add_custom_command. This is now in the

[cmake-developers] ADDITIONAL_MAKE_CLEAN_FILES only works in Makefile generators / automoc cleaning problem

2013-04-29 Thread Alexander Neundorf
Hi, in automoc, for every target foo a foo_automoc target is created, and for each of those a file foo_automoc.cpp is created. When this file does not exist, automoc reruns and all moc files should be regenerated. To achieve this, I added this file in cmQtAutomoc.cxx to the

Re: [cmake-developers] ADDITIONAL_MAKE_CLEAN_FILES only works in Makefile generators / automoc cleaning problem

2013-04-29 Thread Brad King
On 04/29/2013 03:05 PM, Alexander Neundorf wrote: Now after some emails on the cmake list, it seems ADDITIONAL_MAKE_CLEAN_FILES is used only by the Makefile-generators, but not by e.g. the VS generators ? VS does its own cleaning of the build outputs it knows. The target is created using

Re: [cmake-developers] ADDITIONAL_MAKE_CLEAN_FILES only works in Makefile generators / automoc cleaning problem

2013-04-29 Thread Alexander Neundorf
On Monday 29 April 2013, Brad King wrote: On 04/29/2013 03:05 PM, Alexander Neundorf wrote: Now after some emails on the cmake list, it seems ADDITIONAL_MAKE_CLEAN_FILES is used only by the Makefile-generators, but not by e.g. the VS generators ? VS does its own cleaning of the build