From 45958cb835566b437c1152fcd11f678aef30db54 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Tue, 4 Feb 2014 23:43:40 +0100 Subject: [PATCH] Explicitly make chars signed at the compiler-level. Should fix #640. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c40767d20..1fee887e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,9 @@ else() set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11") endif() + + # We use a signed char (fixes #640 on RasPi) + add_flags_cxx("-fsigned-char") endif()