From e3f394af01390cb5c3807114110e84e0084eadb2 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Wed, 20 Apr 2011 14:48:02 +0000 Subject: [PATCH] Fixed remaining Android compatibility issues: added compiler flag to interpret char as signed char. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index cb4fd759e7..2fb2fb3da6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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: