aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCong <[email protected]>2017-05-22 10:15:27 +1000
committerGitHub <[email protected]>2017-05-22 10:15:27 +1000
commit90560cd471ed0a93ce52eae71996d8eeaa752f0c (patch)
tree195ca5aeb4bce1e4bdcdd0bbb8eddf621680c7fe
parent0891c520d286d3d513278b624a432254041e6de8 (diff)
downloadenet-90560cd471ed0a93ce52eae71996d8eeaa752f0c.tar.gz
enet-90560cd471ed0a93ce52eae71996d8eeaa752f0c.zip
Don't treat warnings as errors
When enet is included as a child CMake project in a parent that has warnings treated as errors, enet fails to build. This ensures that the compiler doesn't treat warnings as errors for enet.
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c3c561a..6c99c3e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,6 +20,8 @@ check_type_size("socklen_t" HAS_SOCKLEN_T BUILTIN_TYPES_ONLY)
unset(CMAKE_EXTRA_INCLUDE_FILES)
if(MSVC)
add_definitions(-W3)
+else()
+ add_definitions(-Wno-error)
endif()
if(HAS_FCNTL)