diff options
author | Hanno <h.baensch.92@gmail.com> | 2020-04-09 18:30:20 +0300 |
---|---|---|
committer | Hanno <h.baensch.92@gmail.com> | 2020-04-09 18:30:20 +0300 |
commit | 4560ee24fd8fe5740f65e2d18f6ffe93d8826a90 (patch) | |
tree | 2e134c43198abb807bfcb9d876f10aa0e8e0622d /CMakeLists.txt | |
parent | 6637610b16aacfe43c77ad4060da62008a83cd12 (diff) |
Improve compatibility with clang-cl
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 51d5e722..737fd637 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,7 +98,7 @@ if (WIN32) set(CMAKE_DEBUG_POSTFIX "d") endif() -if (CMAKE_COMPILER_IS_GNUCXX OR (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")) +if (CMAKE_COMPILER_IS_GNUCXX OR ((${CMAKE_CXX_COMPILER_ID} MATCHES "Clang") AND NOT MSVC)) set(spirv-compiler-options ${spirv-compiler-options} -Wall -Wextra -Wshadow) if (SPIRV_CROSS_MISC_WARNINGS) if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang") |