Am Freitag, 8. Oktober 2010 schrieb Stephan Witt:
> Am 07.10.2010 um 14:42 schrieb Kornel Benko:
> 
> > Am Dienstag 05 Oktober 2010 schrieb Stephan Witt:
> >> Fine. And you don't know how it got generated?
> > 
> > The following does not harm here. And both
> >     1.) cmake on a used build-dir
> >     2.) cmake on a fresh build-dir
> > created Makefiles on linux so, that the compile goes ok on the first run.
> > 
> > To quote "man cmake" on this issue (PROPERTIES ON SOURCE FILES):
> >      GENERATED
> >              Is this source file generated as part of the build process.
> > 
> >              If a source file is generated by the build process CMake will 
> > handle it differently in temrs of dependency checking etc.
> >             Otherwise having a non-existent source file could create 
> > problems.
> > ...
> > So maybe it helps.
> 
> It works here in the same way as before. Your commit seems to be correct 
> anyway.
> Perhaps it cures problems I didn't have until now.
> But unfortunately it's not the solution for the dependency problem with the 
> modified .ui files.
> Maybe it's a flaw of the Xcode-Generator of cmake... :-(
> 
> But thanks for taking care!
> 
> Stephan

With the ui-files it may be the same. How about following patch?

        Kornel

Index: modules/LyXMacros.cmake
===================================================================
--- modules/LyXMacros.cmake	(Revision 35576)
+++ modules/LyXMacros.cmake	(Arbeitskopie)
@@ -57,6 +57,7 @@
          MAIN_DEPENDENCY ${_tmp_FILE}
 )
       set(${_ui} ${${_ui}} ${_header})
+      SET_SOURCE_FILES_PROPERTIES(${_header} GENERATED)
    endforeach (_current_FILE)
 endmacro(LYX_ADD_UI_FILES)
 

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to