Skip to content

Commit

Permalink
Windows, compiling - use /diagnostics:caret flag, for better diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Jun 18, 2020
1 parent 9833388 commit 605555f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/os/Windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 605555f

Please sign in to comment.