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>2010-10-24 07:57:07 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-10-24 07:57:07 +0400
commitc7ff23cc34e67e0c8f292fe19c4af4af05b15f1c (patch)
tree7d1042471c76dc5ea79c9dad427318d9b6083536 /extern/CMakeLists.txt
parentea5670f4b597828bfb0170f9b659d19ebdb5ab33 (diff)
Added CMake macro REMOVE_STRICT_FLAGS(), this means developers can build with -Werror in their CMAKE_C_FLAGS_DEBUG (so all warnings give errors).
but external libs which we don't maintain & generated code will have -Werror removed. This is GCC only, MSVC can be added easily.
Diffstat (limited to 'extern/CMakeLists.txt')
-rw-r--r--extern/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt
index 61acff4cfe4..1dc610cc1b4 100644
--- a/extern/CMakeLists.txt
+++ b/extern/CMakeLists.txt
@@ -25,7 +25,7 @@
# ***** END GPL LICENSE BLOCK *****
# Otherwise we get warnings here that we cant fix in external projects
-STRING(REGEX REPLACE "-Wunused-parameter" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
+REMOVE_STRICT_FLAGS()
IF(WITH_BULLET)
ADD_SUBDIRECTORY(bullet2)