summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-02-24 18:11:49 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-02-24 18:12:08 (GMT)
commit8d6ea4401c8fc4c18d070378fc5284b93c311d3a (patch)
tree7ccf57761b722084e9554bf407065fa4f3fea63f /Modules/Compiler
parentfe564f313106b0f955b570920c48f7543e363da0 (diff)
parent5c6d6ec27c5e4d466d7ba7b291ded39c76fb8169 (diff)
downloadCMake-8d6ea4401c8fc4c18d070378fc5284b93c311d3a.zip
CMake-8d6ea4401c8fc4c18d070378fc5284b93c311d3a.tar.gz
CMake-8d6ea4401c8fc4c18d070378fc5284b93c311d3a.tar.bz2
Merge topic 'pch-create-via-include' into release-3.17
5c6d6ec27c PCH: Clang: Update PCH usage flags to include original header Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4360
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/Clang.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/Clang.cmake b/Modules/Compiler/Clang.cmake
index 5cc9328..f65916f 100644
--- a/Modules/Compiler/Clang.cmake
+++ b/Modules/Compiler/Clang.cmake
@@ -101,7 +101,7 @@ else()
if (NOT CMAKE_GENERATOR MATCHES "Xcode")
set(CMAKE_PCH_PROLOGUE "#pragma clang system_header")
endif()
- set(CMAKE_${lang}_COMPILE_OPTIONS_USE_PCH -Xclang -include-pch -Xclang <PCH_FILE>)
+ set(CMAKE_${lang}_COMPILE_OPTIONS_USE_PCH -Xclang -include-pch -Xclang <PCH_FILE> -Xclang -include -Xclang <PCH_HEADER>)
set(CMAKE_${lang}_COMPILE_OPTIONS_CREATE_PCH -Xclang -emit-pch -Xclang -include -Xclang <PCH_HEADER>)
endmacro()
endif()