diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-08-17 13:38:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 13:38:28 (GMT) |
commit | 23699c151bf99ce0c81c786b58d6da187dedd911 (patch) | |
tree | 1d75a72d82e66cce50f3f9e70a69207fd18cb6d7 /config/toolchain | |
parent | 9992505ebeb99f550e5be45db57b0f28105bfb53 (diff) | |
download | hdf5-23699c151bf99ce0c81c786b58d6da187dedd911.zip hdf5-23699c151bf99ce0c81c786b58d6da187dedd911.tar.gz hdf5-23699c151bf99ce0c81c786b58d6da187dedd911.tar.bz2 |
Fix clang/sanitizer for windows #883 (#902)
Diffstat (limited to 'config/toolchain')
-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 |