diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-08-17 13:37:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 13:37:54 (GMT) |
commit | 6241e6985ba4025a6f68fd867692df8053733922 (patch) | |
tree | 23bb206cfa4786398999f5b8029d6303e29307c3 /config/toolchain/clang.cmake | |
parent | cc866bc154d761157ad0a1dbc96b20df946b8970 (diff) | |
download | hdf5-6241e6985ba4025a6f68fd867692df8053733922.zip hdf5-6241e6985ba4025a6f68fd867692df8053733922.tar.gz hdf5-6241e6985ba4025a6f68fd867692df8053733922.tar.bz2 |
Fix clang/sanitizer for windows #883 (#903)
Diffstat (limited to 'config/toolchain/clang.cmake')
-rw-r--r-- | config/toolchain/clang.cmake | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config/toolchain/clang.cmake b/config/toolchain/clang.cmake index 5e3b13a..af176aa 100644 --- a/config/toolchain/clang.cmake +++ b/config/toolchain/clang.cmake @@ -3,8 +3,13 @@ set(CMAKE_COMPILER_VENDOR "clang") -set(CMAKE_C_COMPILER clang) -set(CMAKE_CXX_COMPILER clang++) +if(WIN32) + set(CMAKE_C_COMPILER clang-cl) + set(CMAKE_CXX_COMPILER clang-cl) +else() + set(CMAKE_C_COMPILER clang) + set(CMAKE_CXX_COMPILER clang++) +endif() set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # the following is used if cross-compiling |