Make it possible to disable WERROR.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 8 Nov 2009 16:59:15 +0000 (16:59 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 8 Nov 2009 16:59:15 +0000 (16:59 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30864 f5534014-38df-0310-8fa8-9805f1628bb7

CMakeLists.txt

index 9dcd81dc4c02d8b236db2c6be7281607a7d610a8..77712d2883fee7d1f9508e1312cd0de5bf84037c 100644 (file)
@@ -164,6 +164,8 @@ endforeach()
 
 if(NOT DISABLE_WERROR AND NOT ENABLE_EXTRA_GCC_CHECKS)
        check_c_compiler_flag(-Werror WERROR)
+else()
+       set(WERROR 0)
 endif()
 
 if(CMAKE_COMPILER_IS_GNUCC)