Skip to content

Commit

Permalink
Windows, compilation : Treat warning as error, if MYSQL_MAINTAINER_MODE
Browse files Browse the repository at this point in the history
is set to ERR

This matches gcc/clang handling.
  • Loading branch information
vaintroub committed Jan 9, 2018
1 parent 7d201d7 commit b132d4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/os/Windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ IF(MSVC)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4800 /wd4805 /wd4996 /we4700 /we4311 /we4477 /we4302 /we4090 /wd4267 ")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4800 /wd4805 /wd4996 /wd4291 /wd4577 /we4099 /we4700 /we4311 /we4477 /we4302 /we4090 /wd4267")

IF(MYSQL_MAINTAINER_MODE MATCHES "ERR")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
ENDIF()

ENDIF()

# Always link with socket library
Expand Down

0 comments on commit b132d4d

Please sign in to comment.