aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2017-05-21 09:44:35 -0400
committerGitHub <[email protected]>2017-05-21 09:44:35 -0400
commit0891c520d286d3d513278b624a432254041e6de8 (patch)
treebe15259157ba9f8fa54be4a221a4e6e18bc8beca
parent3ae5af4548d4d0fbf9335f415d14897ce231a5a1 (diff)
parent5f5e977eefbd2522c6d85b70465e65c4ddaee05a (diff)
downloadenet-0891c520d286d3d513278b624a432254041e6de8.tar.gz
enet-0891c520d286d3d513278b624a432254041e6de8.zip
Merge pull request #70 from cxong/patch-1
reduce warnings on MSVC
-rw-r--r--CMakeLists.txt3
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)