[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 23 Sep 2014 17:43:18 +0000 (17:43 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 23 Sep 2014 17:43:18 +0000 (17:43 +0000)
* Use the full path of the PCH file when including it.

svn path=/trunk/; revision=64238

reactos/cmake/gcc.cmake

index 250d665..cd6ce4a 100644 (file)
@@ -371,7 +371,7 @@ if(PCH)
         # Include the gch in the specified source files, skipping the pch file itself
         list(REMOVE_ITEM ${_sources} ${_pch})
         foreach(_src ${${_sources}})
         # Include the gch in the specified source files, skipping the pch file itself
         list(REMOVE_ITEM ${_sources} ${_pch})
         foreach(_src ${${_sources}})
-            set_property(SOURCE ${_src} APPEND_STRING PROPERTY COMPILE_FLAGS " ${_ccache_flag} -include ${_pch_final_name}")
+            set_property(SOURCE ${_src} APPEND_STRING PROPERTY COMPILE_FLAGS " ${_ccache_flag} -include ${CMAKE_CURRENT_BINARY_DIR}/${_pch_final_name}")
             set_property(SOURCE ${_src} APPEND PROPERTY OBJECT_DEPENDS ${_gch})
         endforeach()
     endmacro()
             set_property(SOURCE ${_src} APPEND PROPERTY OBJECT_DEPENDS ${_gch})
         endforeach()
     endmacro()