diff options
author | Cong <[email protected]> | 2017-05-21 20:05:56 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2017-05-21 20:05:56 +1000 |
commit | 5f5e977eefbd2522c6d85b70465e65c4ddaee05a (patch) | |
tree | be15259157ba9f8fa54be4a221a4e6e18bc8beca /CMakeLists.txt | |
parent | 3ae5af4548d4d0fbf9335f415d14897ce231a5a1 (diff) | |
download | enet-5f5e977eefbd2522c6d85b70465e65c4ddaee05a.tar.gz enet-5f5e977eefbd2522c6d85b70465e65c4ddaee05a.zip |
MSVC only warn up to level 3
enet produces warnings at level 4, which can interrupt compiles if warnings are treated as errors. Turning down the warning level resolves the issue.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1fe2f1b..c3c561a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,9 @@ check_struct_has_member("struct msghdr" "msg_flags" "sys/types.h;sys/socket.h" H set(CMAKE_EXTRA_INCLUDE_FILES "sys/types.h" "sys/socket.h") check_type_size("socklen_t" HAS_SOCKLEN_T BUILTIN_TYPES_ONLY) unset(CMAKE_EXTRA_INCLUDE_FILES) +if(MSVC) + add_definitions(-W3) +endif() if(HAS_FCNTL) add_definitions(-DHAS_FCNTL=1) |