You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2012/12/05 18:42:53 UTC

svn commit: r1417552 - /qpid/proton/trunk/proton-c/CMakeLists.txt

Author: astitcher
Date: Wed Dec  5 17:42:52 2012
New Revision: 1417552

URL: http://svn.apache.org/viewvc?rev=1417552&view=rev
Log:
PROTON-105: Allow turning off warnings as errors

Modified:
    qpid/proton/trunk/proton-c/CMakeLists.txt

Modified: qpid/proton/trunk/proton-c/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/CMakeLists.txt?rev=1417552&r1=1417551&r2=1417552&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/CMakeLists.txt (original)
+++ qpid/proton/trunk/proton-c/CMakeLists.txt Wed Dec  5 17:42:52 2012
@@ -137,9 +137,15 @@ else (UUID_GENERATE_IN_LIBC)
   endif (UUID_GENERATE_IN_UUID)
 endif (UUID_GENERATE_IN_LIBC)
 
+option(ENABLE_WARNING_ERROR "Consider compiler warnings to be errors" ON)
+
 # Set any additional platform specific C compiler flags
 if (CMAKE_COMPILER_IS_GNUCC)
-  set (COMPILE_WARNING_FLAGS "-Wall -Werror -pedantic-errors")
+  if (ENABLE_WARNING_ERROR)
+    set (COMPILE_WARNING_FLAGS "-Wall -Werror -pedantic-errors")
+  else (ENABLE_WARNING_ERROR)
+    set (COMPILE_WARNING_FLAGS "-Wall -pedantic-errors")
+  endif (ENABLE_WARNING_ERROR)
   set (COMPILE_LANGUAGE_FLAGS "-std=c99")
   set (COMPILE_PLATFORM_FLAGS "-std=gnu99")
 endif (CMAKE_COMPILER_IS_GNUCC)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org