remove DEBUG flag from OpenNL with cmake, was giving too many prints in the console...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 29 Mar 2011 11:50:37 +0000 (11:50 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 29 Mar 2011 11:50:37 +0000 (11:50 +0000)
build_files/cmake/macros.cmake
intern/opennl/CMakeLists.txt

index 073147266bb0a1247c554d083c180084a7a057aa..4a9c55d81cdeaacf0141f5aa043e137e3e39edc2 100644 (file)
@@ -265,7 +265,7 @@ endmacro()
 # 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 @@ endmacro()
 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)
index 7fbbfa633cef8352073a08751f050b8d2445135e..699d2dec795571d724d1a43121e39300074278c5 100644 (file)
 # 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