mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
Fixed remaining Android compatibility issues: added compiler flag to interpret char as signed char.
This commit is contained in:
parent
8483b95256
commit
e3f394af01
@ -1005,6 +1005,11 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
||||
set(EXTRA_C_FLAGS_RELEASE "${EXTRA_C_FLAGS_RELEASE} -DNDEBUG")
|
||||
set(EXTRA_C_FLAGS_DEBUG "${EXTRA_C_FLAGS_DEBUG} -O0 -ggdb3 -DDEBUG -D_DEBUG")
|
||||
|
||||
if(ANDROID)
|
||||
#force compiler to interpret char as signed char
|
||||
set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -fsigned-char")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Extra link libs if the user selects building static libs:
|
||||
|
Loading…
Reference in New Issue
Block a user