setting 'char' to be signed by default since some tests fail when it's wrong (e.g...
authorAndrey Pavlenko <andrey.pavlenko@itseez.com>
Fri, 31 May 2013 14:58:30 +0000 (18:58 +0400)
committerAndrey Pavlenko <andrey.pavlenko@itseez.com>
Fri, 31 May 2013 14:58:30 +0000 (18:58 +0400)
cmake/OpenCVCompilerOptions.cmake

index aeed112..bded2d4 100644 (file)
@@ -47,6 +47,9 @@ macro(add_extra_compiler_option option)
   endif()
 endmacro()
 
+# some OpenCV tests fail when 'char' is 'unsigned' by default
+add_extra_compiler_option(-fsigned-char)
+
 if(MINGW)
   # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40838
   # here we are trying to workaround the problem