diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2019-10-30 12:25:07 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2019-10-30 12:25:07 +0100 |
commit | 73c864b5d16aec710a1686a83fb7e92e080a2f30 (patch) | |
tree | 5f38dca35dc4bc86f9b69f8077fbaea080912613 /cmake/os | |
parent | bef843b97f2e91859f2a08845822d619e769f89f (diff) | |
download | mariadb-git-73c864b5d16aec710a1686a83fb7e92e080a2f30.tar.gz |
Fix clang-cl build on Windows
Diffstat (limited to 'cmake/os')
-rw-r--r-- | cmake/os/Windows.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/os/Windows.cmake b/cmake/os/Windows.cmake index eb56f599eb4..dbb18a488c7 100644 --- a/cmake/os/Windows.cmake +++ b/cmake/os/Windows.cmake @@ -206,7 +206,7 @@ IF(MSVC) # Noisy warning C4800: 'type': forcing value to bool 'true' or 'false' (performance warning), # removed in VS2017 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4800") - ELSE() + ELSEIF (NOT (CMAKE_CXX_COMPILER_ID MATCHES Clang)) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /d2OptimizeHugeFunctions") ENDIF() ENDIF() |