diff options
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/pch.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/pch.cmake b/cmake/pch.cmake index 9b038cf47..9df1c0383 100644 --- a/cmake/pch.cmake +++ b/cmake/pch.cmake @@ -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}) |
