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:
2
extern/CMakeLists.txt
vendored
2
extern/CMakeLists.txt
vendored
@@ -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)
|
||||
|
Reference in New Issue
Block a user