Browse Source

Merge pull request #71 from cxong/patch-2

Don't treat warnings as errors
Lee Salzman 7 years ago
parent
commit
9d9ba122d4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      CMakeLists.txt

+ 2 - 0
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)