diff options
author | Brad King <brad.king@kitware.com> | 2020-02-24 18:11:49 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-02-24 18:12:08 (GMT) |
commit | 8d6ea4401c8fc4c18d070378fc5284b93c311d3a (patch) | |
tree | 7ccf57761b722084e9554bf407065fa4f3fea63f /Modules/Compiler | |
parent | fe564f313106b0f955b570920c48f7543e363da0 (diff) | |
parent | 5c6d6ec27c5e4d466d7ba7b291ded39c76fb8169 (diff) | |
download | CMake-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.cmake | 2 |
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() |