Re: [CMake] QT4_CREATE_TRANSLATION delete source ts files during clean

2014-03-04 Thread Anatoly Shirokov
Steve, let me know you understand my use case? Let me know you understand that make clean can deletes all translations files. Let me know you understand that this is because of bug inside QTx_CREATE_TRANSLATION. Thanks, Anatoly Shirokov -- Powered by www.kitware.com Please keep messages

Re: [CMake] QT4_CREATE_TRANSLATION delete source ts files during clean

2014-02-26 Thread Stephen Kelly
Anatoly Shirokov wrote: Guys! I have fixed bug related to delete translation (ts) file during clean (someone meet the same problem here http://cmake.3232098.n2.nabble.com/How-to-not-delete-generated-files-on-make-clean-td4425991.html) I agree with the point that Hendrik Sattler makes that

Re: [CMake] QT4_CREATE_TRANSLATION delete source ts files during clean

2014-02-26 Thread Anatoly Shirokov
The translation file is usual source file, it is not binary artifact. The only difference is that I have to support them in up to date state with the lupdate utility. I want to invoke lupdate automatically during build and after that commit updated translation files to use them by translator

Re: [CMake] QT4_CREATE_TRANSLATION delete source ts files during clean

2014-02-26 Thread Stephen Kelly
Anatoly Shirokov wrote: The translation file is usual source file, it is not binary artifact. I didn't say it was a binary artifact. It's a buildsystem artifact created by your buildsystem. The only difference is that I have to support them in up to date state with the lupdate utility.

Re: [CMake] QT4_CREATE_TRANSLATION delete source ts files during clean

2014-02-26 Thread Anatoly Shirokov
Please see my comments below 27.02.2014 1:08, Stephen Kelly ?: Anatoly Shirokov wrote: The translation file is usual source file, it is not binary artifact. I didn't say it was a binary artifact. It's a buildsystem artifact created by your buildsystem. This is source which can be

Re: [CMake] QT4_CREATE_TRANSLATION delete source ts files during clean

2014-02-26 Thread Jean-Christophe Fillion-Robin
Hi Anatoly, Within Slicer [1], we addressed the creation / updates of the translation files by introducing a variable named Slicer_UPDATE_TRANSLATION [2] Then, within a macro named 'SlicerMacroTranslation.cmake' [3], depending on the value of Slicer_UPDATE_TRANSLATION, we either call (1)

Re: [CMake] QT4_CREATE_TRANSLATION delete source ts files during clean

2014-02-26 Thread Anatoly Shirokov
Dear Jean-Christophe Fillion-Robin! Thank you very much for your attention. But I do not have a problem with CREATE. I have problem with UPDATE, actually with QTx_CREATE_TRANSLATION. QTx_CREATE_TRANSLATION uses add_custom_command which forces to delete the original updated SOURCE ts file