summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2018-10-15 18:56:23 +0200
committerpeterbell10 <peterbell10@live.co.uk>2018-10-15 18:56:23 +0200
commit6c3dd41717664c75bf77392dd4a4df3b35678fa5 (patch)
tree02e81845af3058f0dcbcb88cae2445868b6e17d7 /SetFlags.cmake
parentAdd colors to console for macOS (#4303) (diff)
downloadcuberite-6c3dd41717664c75bf77392dd4a4df3b35678fa5.tar
cuberite-6c3dd41717664c75bf77392dd4a4df3b35678fa5.tar.gz
cuberite-6c3dd41717664c75bf77392dd4a4df3b35678fa5.tar.bz2
cuberite-6c3dd41717664c75bf77392dd4a4df3b35678fa5.tar.lz
cuberite-6c3dd41717664c75bf77392dd4a4df3b35678fa5.tar.xz
cuberite-6c3dd41717664c75bf77392dd4a4df3b35678fa5.tar.zst
cuberite-6c3dd41717664c75bf77392dd4a4df3b35678fa5.zip
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r--SetFlags.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index f26fc1b96..0c878d660 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -26,7 +26,7 @@ macro(get_clang_version)
execute_process(
COMMAND "${CMAKE_CXX_COMPILER}" "--version"
OUTPUT_VARIABLE CLANG_VERSION_OUTPUT)
- string(REGEX MATCH "version ([0-9]\\.[0-9])" x ${CLANG_VERSION_OUTPUT})
+ string(REGEX MATCH "version ([0-9]+\\.[0-9]+)" x ${CLANG_VERSION_OUTPUT})
set(CLANG_VERSION ${CMAKE_MATCH_1})
endmacro()
@@ -91,7 +91,7 @@ macro(set_flags)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11")
set(CMAKE_CXX_FLAGS_COVERAGE "${CMAKE_CXX_FLAGS_COVERAGE} -std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11")
-
+
add_flags_cxx("-fsigned-char")
else()
# Let gcc / clang know that we're compiling a multi-threaded app: