Skip to content

Commit

Permalink
cmake/pch.cmake: Also append -fpch-preprocess to make ccache happier
Browse files Browse the repository at this point in the history
(bzr r3387.5.83)
  • Loading branch information
3v1n0 committed Jul 10, 2013
1 parent 8d62bba commit 4f5851d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/pch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function(add_pch_linux header_filename target_name pch_suffix)
# Add the PCH to every source file's include list.
# This is the only way that is supported by both GCC and Clang.
set_property(TARGET ${target_name} APPEND_STRING PROPERTY COMPILE_FLAGS " -include ${header_basename} ")
set_property(TARGET ${target_name} APPEND_STRING PROPERTY COMPILE_FLAGS " -fpch-preprocess ")
set_property(TARGET ${target_name} APPEND_STRING PROPERTY COMPILE_FLAGS " -Winvalid-pch ")
set_property(TARGET ${target_name} APPEND PROPERTY INCLUDE_DIRECTORIES ${CMAKE_CURRENT_BINARY_DIR})

Expand Down

0 comments on commit 4f5851d

Please sign in to comment.