summaryrefslogtreecommitdiffstats
path: root/config/cmake/HDFCompilerFlags.cmake
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-09-24 12:36:56 (GMT)
committerGitHub <noreply@github.com>2021-09-24 12:36:56 (GMT)
commit0ea3bceb39f9b037a215eb1a5b6a5cdb2a678737 (patch)
treea7b9427e34012b9aa45da799d3068fff9ae139be /config/cmake/HDFCompilerFlags.cmake
parenta6d55be7d686ea0fa6fccb6523b1a8d45d3903d1 (diff)
downloadhdf5-0ea3bceb39f9b037a215eb1a5b6a5cdb2a678737.zip
hdf5-0ea3bceb39f9b037a215eb1a5b6a5cdb2a678737.tar.gz
hdf5-0ea3bceb39f9b037a215eb1a5b6a5cdb2a678737.tar.bz2
1.12 Merge Need to match clang and versions not just "Clang" #1029 (#1030)
* Merge Need to match clang and versions not just "Clang" * Merge MS clang needs EHsc flag #1035
Diffstat (limited to 'config/cmake/HDFCompilerFlags.cmake')
-rw-r--r--config/cmake/HDFCompilerFlags.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/cmake/HDFCompilerFlags.cmake b/config/cmake/HDFCompilerFlags.cmake
index de5b563..210e475 100644
--- a/config/cmake/HDFCompilerFlags.cmake
+++ b/config/cmake/HDFCompilerFlags.cmake
@@ -24,8 +24,7 @@ if(WIN32 AND CMAKE_C_COMPILER_ID STREQUAL "Intel")
set(_INTEL_WINDOWS 1)
endif()
-if(WIN32 AND CMAKE_C_COMPILER_ID STREQUAL "Clang"
- AND "x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC")
+if(WIN32 AND CMAKE_C_COMPILER_ID MATCHES "[Cc]lang" AND "x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC")
set(_CLANG_MSVC_WINDOWS 1)
endif()