summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2020-06-19 00:09:36 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2020-06-19 00:09:36 +0200
commit605555fc31784302a54d398d9503ca1e9e4bdec9 (patch)
tree5941e4c438241749f98ec93fedc8b5d6a88cba68 /cmake
parent98333883eef049798917ace7d3eab8bbbe3136cf (diff)
downloadmariadb-git-605555fc31784302a54d398d9503ca1e9e4bdec9.tar.gz
Windows, compiling - use /diagnostics:caret flag, for better diagnostics
Diffstat (limited to 'cmake')
-rw-r--r--cmake/os/Windows.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/os/Windows.cmake b/cmake/os/Windows.cmake
index 1332a61c350..189253c5b23 100644
--- a/cmake/os/Windows.cmake
+++ b/cmake/os/Windows.cmake
@@ -216,6 +216,8 @@ IF(MSVC)
STRING(APPEND CMAKE_CXX_FLAGS " /we4099 /we4700 /we4311 /we4477 /we4302 /we4090")
IF(MSVC_VERSION GREATER 1910 AND NOT CLANG_CL)
STRING(APPEND CMAKE_CXX_FLAGS " /permissive-")
+ STRING(APPEND CMAKE_C_FLAGS " /diagnostics:caret")
+ STRING(APPEND CMAKE_CXX_FLAGS " /diagnostics:caret")
ENDIF()
ADD_DEFINITIONS(-D_CRT_NONSTDC_NO_WARNINGS)
IF(MYSQL_MAINTAINER_MODE MATCHES "ERR")