Author: jgardou
Date: Thu Jun 2 12:55:09 2011
New Revision: 52061
URL:
http://svn.reactos.org/svn/reactos?rev=52061&view=rev
Log:
[CMAKE]
"According to gcc doc, if header.h is precompiled, the output should be named
"header.h.gch" and not anything else."
Knowing it was the first step before actually doing it :-/
Modified:
trunk/reactos/gcc.cmake
Modified: trunk/reactos/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/gcc.cmake?rev=52061&r1…
==============================================================================
--- trunk/reactos/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/gcc.cmake [iso-8859-1] Thu Jun 2 12:55:09 2011
@@ -294,7 +294,7 @@
macro(_PCH_GET_COMPILE_FLAGS _target_name _out_compile_flags _header_filename)
# Add the precompiled header to the build
get_filename_component(_FILE ${_header_filename} NAME)
- set(_gch_filename "${_target_name}_${_FILE}.gch")
+ set(_gch_filename "${_FILE}.gch")
list(APPEND ${_out_compile_flags} -c ${_header_filename} -o ${_gch_filename})
# This gets us our includes
@@ -321,7 +321,7 @@
macro(add_pch _target_name _FILE)
set(_header_filename ${CMAKE_CURRENT_SOURCE_DIR}/${_FILE})
get_filename_component(_basename ${_FILE} NAME)
- set(_gch_filename ${_target_name}_${basename}.gch)
+ set(_gch_filename ${_basename}.gch)
_PCH_GET_COMPILE_FLAGS(${_target_name} _args ${_header_filename})
add_custom_command(