summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-10 14:09:01 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-02-10 14:09:09 (GMT)
commit5b480172c369eaec81bbae8305b418b9a48558d4 (patch)
tree511356362b6e458444ce4c5ada53a699d0f48151 /Tests
parent5a65e086441cb877252e73db9767884e9b284022 (diff)
parent641cb1093b9b67875f60ed4a51110262f2170b12 (diff)
downloadCMake-5b480172c369eaec81bbae8305b418b9a48558d4.zip
CMake-5b480172c369eaec81bbae8305b418b9a48558d4.tar.gz
CMake-5b480172c369eaec81bbae8305b418b9a48558d4.tar.bz2
Merge topic 'clang-cross-compile-windows-pdb' into release-3.23
641cb1093b Windows/Clang: Support PDB when cross-compiling Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Alex <leha-bot@yandex.ru> Merge-request: !6959
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 1d7e632..6087021 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -84,7 +84,8 @@ endif()
# Test MSVC for older host CMake versions, and test
# WIN32/CMAKE_C_COMPILER_ID to fix check on Intel for Windows.
-if(MSVC OR (WIN32 AND CMAKE_C_COMPILER_ID MATCHES "MSVC|Intel"))
+if(MSVC OR (WIN32 AND CMAKE_C_COMPILER_ID MATCHES "MSVC|Intel")
+ OR (WIN32 AND CMAKE_C_COMPILER_ID MATCHES "Clang" AND CMAKE_C_SIMULATE_ID MATCHES "MSVC"))
set(LINKER_SUPPORTS_PDB 1)
else()
set(LINKER_SUPPORTS_PDB 0)