Author: jgardou
Date: Sun Sep 4 18:41:04 2011
New Revision: 53587
URL:
http://svn.reactos.org/svn/reactos?rev=53587&view=rev
Log:
[CMAKE]
- revert unwanted change from 53567
Modified:
trunk/reactos/cmake/gcc.cmake
Modified: trunk/reactos/cmake/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/gcc.cmake?rev=53587&…
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Sun Sep 4 18:41:04 2011
@@ -302,6 +302,12 @@
DEPENDS ${_header_filename} ${ARGN})
get_target_property(_src_files ${_target_name} SOURCES)
add_target_compile_flags(${_target_name} "-fpch-preprocess -Winvalid-pch
-Wno-error=invalid-pch")
+ foreach(_item in ${_src_files})
+ get_source_file_property(__src_lang ${_item} LANGUAGE)
+ if(__src_lang STREQUAL __lang)
+ set_source_files_properties(${_item} PROPERTIES OBJECT_DEPENDS
${CMAKE_CURRENT_BINARY_DIR}/${_gch_filename})
+ endif()
+ endforeach()
#set dependency checking : depends on precompiled header only which already
depends on deeper header
set_target_properties(${_target_name} PROPERTIES
IMPLICIT_DEPENDS_INCLUDE_TRANSFORM
"\"${_basename}\"=;<${_basename}>=")
endmacro()