CMake: use signed char for recastnavigation
External libraries may need char to be signed.
This commit is contained in:
parent
20678138f7
commit
89df6720be
Notes:
blender-bot
2023-02-14 09:02:41 +01:00
Referenced by issue #48466, Missing Render Passes in Multilayer EXR Referenced by issue #48472, Cycles Spatial Splits BHV fails to complete build in scenes containing lots of hair along with SSS materials Referenced by issue #48456, OSX retina - image paint brush paints 2x wider than brush setting, cant paint 1px Referenced by issue #47727, Weird bake results with non integer color values
|
@ -1050,6 +1050,19 @@ macro(remove_strict_flags_file
|
|||
|
||||
endmacro()
|
||||
|
||||
# External libs may need 'signed char' to be default.
|
||||
macro(remove_cc_flag_unsigned_char)
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "^(GNU|Clang|Intel)$")
|
||||
remove_cc_flag("-funsigned-char")
|
||||
elseif(MSVC)
|
||||
remove_cc_flag("/J")
|
||||
else()
|
||||
message(WARNING
|
||||
"Compiler '${CMAKE_C_COMPILER_ID}' failed to disable 'unsigned char' flag."
|
||||
"Build files need updating."
|
||||
)
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
function(ADD_CHECK_C_COMPILER_FLAG
|
||||
_CFLAGS
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
#
|
||||
# ***** END GPL LICENSE BLOCK *****
|
||||
|
||||
remove_cc_flag_unsigned_char()
|
||||
|
||||
set(INC
|
||||
Recast/Include
|
||||
Detour/Include
|
||||
|
|
Loading…
Reference in New Issue