summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-10-26 12:56:30 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-10-26 12:56:37 (GMT)
commit0278ec84d823b3d910cf5fc614b30b76984ac135 (patch)
treef525a7460a3be719cbaff42b0988e41178cc6a6e /Modules/Platform
parent6b829ff23dea13f5f70ea57b3594efd0726ff598 (diff)
parent7077a554f14ad1cc5682d6bc8c2d05d1aff2a270 (diff)
downloadCMake-0278ec84d823b3d910cf5fc614b30b76984ac135.zip
CMake-0278ec84d823b3d910cf5fc614b30b76984ac135.tar.gz
CMake-0278ec84d823b3d910cf5fc614b30b76984ac135.tar.bz2
Merge topic 'clang-cl-TP'
7077a554 Clang: Use -TP flag for C++ sources with clang-cl Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1407
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Windows-Clang-CXX.cmake1
-rw-r--r--Modules/Platform/Windows-Clang.cmake1
2 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-Clang-CXX.cmake b/Modules/Platform/Windows-Clang-CXX.cmake
index 2c3688a..f1d40f2 100644
--- a/Modules/Platform/Windows-Clang-CXX.cmake
+++ b/Modules/Platform/Windows-Clang-CXX.cmake
@@ -1,2 +1,3 @@
include(Platform/Windows-Clang)
+set(_COMPILE_CXX_MSVC " -TP")
__windows_compiler_clang(CXX)
diff --git a/Modules/Platform/Windows-Clang.cmake b/Modules/Platform/Windows-Clang.cmake
index bcfda93..007ae53 100644
--- a/Modules/Platform/Windows-Clang.cmake
+++ b/Modules/Platform/Windows-Clang.cmake
@@ -12,6 +12,7 @@ if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC"
OR "x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC")
include(Platform/Windows-MSVC)
macro(__windows_compiler_clang lang)
+ set(_COMPILE_${lang} "${_COMPILE_${lang}_MSVC}")
__windows_compiler_msvc(${lang})
endmacro()
else()