From 4151922f7ceb75d450bcd2f73b37ef18f7bbf1ef Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 11 Feb 2021 09:58:04 +0100 Subject: [PATCH] Force signed char on all GCC platforms --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index cd44e06eb..517561a9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,6 +102,10 @@ if (MINGW) add_compile_options(-Wa,-mbig-obj) endif () +if (NOT MSVC) + add_compile_options(-fsigned-char) +endif () + # Display and check CMAKE_PREFIX_PATH message(STATUS "SLIC3R_STATIC: ${SLIC3R_STATIC}") if (NOT "${CMAKE_PREFIX_PATH}" STREQUAL "")