mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Disable noisy warning in old compiler (VS2015)
This commit is contained in:
parent
ac8e3c85a4
commit
24462cece4
1 changed files with 5 additions and 1 deletions
|
@ -155,7 +155,11 @@ IF(MSVC)
|
|||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
|
||||
ENDIF()
|
||||
|
||||
IF(MSVC_VERSION LESS 1910)
|
||||
# Noisy warning C4800: 'type': forcing value to bool 'true' or 'false' (performance warning),
|
||||
# removed in VS2017
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4800")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
# Always link with socket library
|
||||
|
|
Loading…
Reference in a new issue