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.

        Kornel



Index: development/cmake/modules/LyXMacros.cmake
===================================================================
--- development/cmake/modules/LyXMacros.cmake	(Revision 35567)
+++ development/cmake/modules/LyXMacros.cmake	(Arbeitskopie)
@@ -113,6 +113,7 @@
                        ARGS ${_def} ${_moc_INCS} ${_header} -o ${_moc}
                        MAIN_DEPENDENCY ${_header})
                macro_add_file_dependencies(${_abs_FILE} ${_moc})
+	       SET_SOURCE_FILES_PROPERTIES(${_moc} GENERATED)
             endforeach (_current_MOC_INC)
          else()
             #message(STATUS "moc not found : ${_abs_FILE} ")

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

Reply via email to