[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35868] trunk/blender: remove DEBUG flag from OpenNL with cmake, was giving too many prints in the console when unwrapping.

Campbell Barton ideasman42 at gmail.com
Tue Mar 29 13:50:38 CEST 2011


Revision: 35868
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35868
Author:   campbellbarton
Date:     2011-03-29 11:50:37 +0000 (Tue, 29 Mar 2011)
Log Message:
-----------
remove DEBUG flag from OpenNL with cmake, was giving too many prints in the console when unwrapping.

Modified Paths:
--------------
    trunk/blender/build_files/cmake/macros.cmake
    trunk/blender/intern/opennl/CMakeLists.txt

Modified: trunk/blender/build_files/cmake/macros.cmake
===================================================================
--- trunk/blender/build_files/cmake/macros.cmake	2011-03-29 10:27:31 UTC (rev 35867)
+++ trunk/blender/build_files/cmake/macros.cmake	2011-03-29 11:50:37 UTC (rev 35868)
@@ -265,7 +265,7 @@
 # needs to be removed for some external libs which we dont maintain.
 
 # utility macro
-macro(_remove_strict_flags
+macro(remove_flag
 	flag)
 
 	string(REGEX REPLACE ${flag} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
@@ -285,12 +285,12 @@
 macro(remove_strict_flags)
 
 	if(CMAKE_COMPILER_IS_GNUCC)
-		_remove_strict_flags("-Wstrict-prototypes")
-		_remove_strict_flags("-Wunused-parameter")
-		_remove_strict_flags("-Wwrite-strings")
-		_remove_strict_flags("-Wshadow")
-		_remove_strict_flags("-Werror=[^ ]+")
-		_remove_strict_flags("-Werror")
+		remove_flag("-Wstrict-prototypes")
+		remove_flag("-Wunused-parameter")
+		remove_flag("-Wwrite-strings")
+		remove_flag("-Wshadow")
+		remove_flag("-Werror=[^ ]+")
+		remove_flag("-Werror")
 	endif()
 
 	if(MSVC)

Modified: trunk/blender/intern/opennl/CMakeLists.txt
===================================================================
--- trunk/blender/intern/opennl/CMakeLists.txt	2011-03-29 10:27:31 UTC (rev 35867)
+++ trunk/blender/intern/opennl/CMakeLists.txt	2011-03-29 11:50:37 UTC (rev 35868)
@@ -27,6 +27,10 @@
 # External project, better not fix warnings.
 remove_strict_flags()
 
+# remove debug flag here since this is not a blender maintained library
+# and debug gives a lot of prints on UV unwrapping. developers can enable if they need to.
+remove_flag("-DDEBUG")
+
 set(INC
 	extern
 	superlu




More information about the Bf-blender-cvs mailing list