forked from bartvdbraak/blender
remove DEBUG flag from OpenNL with cmake, was giving too many prints in the console when unwrapping.
This commit is contained in:
parent
7a252d9824
commit
aa2269e065
@ -265,7 +265,7 @@ endmacro()
|
|||||||
# needs to be removed for some external libs which we dont maintain.
|
# needs to be removed for some external libs which we dont maintain.
|
||||||
|
|
||||||
# utility macro
|
# utility macro
|
||||||
macro(_remove_strict_flags
|
macro(remove_flag
|
||||||
flag)
|
flag)
|
||||||
|
|
||||||
string(REGEX REPLACE ${flag} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
string(REGEX REPLACE ${flag} "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
||||||
@ -285,12 +285,12 @@ endmacro()
|
|||||||
macro(remove_strict_flags)
|
macro(remove_strict_flags)
|
||||||
|
|
||||||
if(CMAKE_COMPILER_IS_GNUCC)
|
if(CMAKE_COMPILER_IS_GNUCC)
|
||||||
_remove_strict_flags("-Wstrict-prototypes")
|
remove_flag("-Wstrict-prototypes")
|
||||||
_remove_strict_flags("-Wunused-parameter")
|
remove_flag("-Wunused-parameter")
|
||||||
_remove_strict_flags("-Wwrite-strings")
|
remove_flag("-Wwrite-strings")
|
||||||
_remove_strict_flags("-Wshadow")
|
remove_flag("-Wshadow")
|
||||||
_remove_strict_flags("-Werror=[^ ]+")
|
remove_flag("-Werror=[^ ]+")
|
||||||
_remove_strict_flags("-Werror")
|
remove_flag("-Werror")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
|
@ -27,6 +27,10 @@
|
|||||||
# External project, better not fix warnings.
|
# External project, better not fix warnings.
|
||||||
remove_strict_flags()
|
remove_strict_flags()
|
||||||
|
|
||||||
|
# remove debug flag here since this is not a blender maintained library
|
||||||
|
# and debug gives a lot of prints on UV unwrapping. developers can enable if they need to.
|
||||||
|
remove_flag("-DDEBUG")
|
||||||
|
|
||||||
set(INC
|
set(INC
|
||||||
extern
|
extern
|
||||||
superlu
|
superlu
|
||||||
|
Loading…
Reference in New Issue
Block a user