diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-24 07:57:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-24 07:57:07 +0400 |
commit | c7ff23cc34e67e0c8f292fe19c4af4af05b15f1c (patch) | |
tree | 7d1042471c76dc5ea79c9dad427318d9b6083536 /extern | |
parent | ea5670f4b597828bfb0170f9b659d19ebdb5ab33 (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')
-rw-r--r-- | extern/CMakeLists.txt | 2 |
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) |