[Orxonox-commit 2583] r7288 - code/trunk/cmake/tools
rgrieder at orxonox.net
rgrieder at orxonox.net
Tue Aug 31 14:43:22 CEST 2010
Author: rgrieder
Date: 2010-08-31 14:43:22 +0200 (Tue, 31 Aug 2010)
New Revision: 7288
Modified:
code/trunk/cmake/tools/PrecompiledHeaderFiles.cmake
Log:
Finally found a fix for the No rule to make target problem with precompiled header files (GCC)
Modified: code/trunk/cmake/tools/PrecompiledHeaderFiles.cmake
===================================================================
--- code/trunk/cmake/tools/PrecompiledHeaderFiles.cmake 2010-08-31 09:13:46 UTC (rev 7287)
+++ code/trunk/cmake/tools/PrecompiledHeaderFiles.cmake 2010-08-31 12:43:22 UTC (rev 7288)
@@ -129,6 +129,10 @@
ENDIF(NOT _is_header)
ENDFOREACH(_file)
+ # Makefile dependency scanner requires the PCH file to be part of the
+ # target files in order to work properly
+ LIST(APPEND _source_files ${_pch_file})
+
ENDIF()
ENDMACRO(PRECOMPILED_HEADER_FILES_PRE_TARGET)
More information about the Orxonox-commit
mailing list