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.
This commit is contained in:
Campbell Barton
2010-10-24 03:57:07 +00:00
parent ea5670f4b5
commit c7ff23cc34
5 changed files with 40 additions and 5 deletions

View File

@@ -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)