Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-29 15:50:37 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-03-29 15:50:37 +0400
commitaa2269e065b2f3fd3e6da97103843e6ccb2cf18a (patch)
tree1916e85408318fec7ff1c23477e2060282743539 /build_files
parent7a252d982411c0bf7055d7295a01bdb24d8a80ef (diff)
remove DEBUG flag from OpenNL with cmake, was giving too many prints in the console when unwrapping.
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/macros.cmake14
1 files changed, 7 insertions, 7 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index 073147266bb..4a9c55d81cd 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -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)