[ros-diffs] [akhaldi] 52131: [CMAKE] * Temporarily disable PCH support, as it breaks build for windows users with ccache (most importantly our windows buildbot).

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Tue Jun 7 15:38:10 UTC 2011


Author: akhaldi
Date: Tue Jun  7 15:38:10 2011
New Revision: 52131

URL: http://svn.reactos.org/svn/reactos?rev=52131&view=rev
Log:
[CMAKE]
* Temporarily disable PCH support, as it breaks build for windows users with ccache (most importantly our windows buildbot).

Modified:
    trunk/reactos/gcc.cmake

Modified: trunk/reactos/gcc.cmake
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/gcc.cmake?rev=52131&r1=52130&r2=52131&view=diff
==============================================================================
--- trunk/reactos/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/gcc.cmake [iso-8859-1] Tue Jun  7 15:38:10 2011
@@ -319,16 +319,13 @@
 endmacro()
 
 macro(add_pch _target_name _FILE)
-	set(_header_filename ${CMAKE_CURRENT_SOURCE_DIR}/${_FILE})
-	get_filename_component(_basename ${_FILE} NAME)
-    set(_gch_filename ${_basename}.gch)
-    _PCH_GET_COMPILE_FLAGS(${_target_name} _args ${_header_filename})
+	#set(_header_filename ${CMAKE_CURRENT_SOURCE_DIR}/${_FILE})
+	#get_filename_component(_basename ${_FILE} NAME)
+    #set(_gch_filename ${_basename}.gch)
+    #_PCH_GET_COMPILE_FLAGS(${_target_name} _args ${_header_filename})
 	
-    add_custom_command(
-        OUTPUT ${_gch_filename}
-        COMMAND ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1} ${_args}
-        DEPENDS ${_header_filename})
-	get_target_property(_src_files ${_target_name} SOURCES)
-	set_source_files_properties(${_src_files} PROPERTIES COMPILE_FLAGS "-Winvalid-pch -fpch-preprocess" OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_gch_filename})
+    #add_custom_command(OUTPUT ${_gch_filename} COMMAND ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1} ${_args} DEPENDS ${_header_filename})
+	#get_target_property(_src_files ${_target_name} SOURCES)
+	#set_source_files_properties(${_src_files} PROPERTIES COMPILE_FLAGS "-Winvalid-pch -fpch-preprocess" #OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_gch_filename})
 	#add_linkerflag(${_target_name} "${_gch_filename}")
 endmacro()




More information about the Ros-diffs mailing list