[asterisk-scf-commits] asterisk-scf/integration/gitall.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Aug 10 17:21:24 CDT 2011


branch "master" has been updated
       via  180126e7f0ea6031c8c02df2d48c8f14df680940 (commit)
      from  f3d28f3a3861e7b62624cc6e1cec4cf3ea0ab703 (commit)

Summary of changes:
 cmake/AsteriskSCF.cmake |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit 180126e7f0ea6031c8c02df2d48c8f14df680940
Author: Brent Eagles <beagles at digium.com>
Date:   Wed Aug 10 19:48:44 2011 -0230

    Add function to disable warnings-as-errors for gcc  on a project-by-project
    basis

diff --git a/cmake/AsteriskSCF.cmake b/cmake/AsteriskSCF.cmake
index 33aa47e..7daf7eb 100644
--- a/cmake/AsteriskSCF.cmake
+++ b/cmake/AsteriskSCF.cmake
@@ -1,4 +1,5 @@
 #
+astscf_allowwarnings()
 # Asterisk SCF -- An open-source communications framework.
 #
 # Copyright (C) 2010-2011, Digium, Inc.
@@ -271,6 +272,15 @@ macro(__astscf_compute_test_paths)
   endif()
 endmacro()
 
+function(astscf_allowwarnings)
+  if(CMAKE_COMPILER_IS_GNUCXX)
+    unset(_lv)
+    string(REPLACE "-Werror" "" _lv "${CMAKE_CXX_FLAGS_DEBUG}")
+    message(STATUS "${_lv}")
+    set(CMAKE_CXX_FLAGS_DEBUG "${_lv}" PARENT_SCOPE)
+  endif()
+endfunction()
+
 # Function which initializes project specific things
 function(astscf_project NAME ICE_VERSION)
   message(STATUS "Setting up project ${NAME} for Ice version ${ICE_VERSION}")

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/gitall.git



More information about the asterisk-scf-commits mailing list