summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-09-06 15:49:40 +0200
committerworktycho <work.tycho@gmail.com>2014-09-06 15:49:40 +0200
commit8b5ad667d90fa8dc69ef8b1849e3fe426d8a04eb (patch)
tree1d77270c0545dfa5c9c983309e2bc6c397c8fd77
parentShould now compile in clang 3.0 (diff)
downloadcuberite-8b5ad667d90fa8dc69ef8b1849e3fe426d8a04eb.tar
cuberite-8b5ad667d90fa8dc69ef8b1849e3fe426d8a04eb.tar.gz
cuberite-8b5ad667d90fa8dc69ef8b1849e3fe426d8a04eb.tar.bz2
cuberite-8b5ad667d90fa8dc69ef8b1849e3fe426d8a04eb.tar.lz
cuberite-8b5ad667d90fa8dc69ef8b1849e3fe426d8a04eb.tar.xz
cuberite-8b5ad667d90fa8dc69ef8b1849e3fe426d8a04eb.tar.zst
cuberite-8b5ad667d90fa8dc69ef8b1849e3fe426d8a04eb.zip
Diffstat (limited to '')
-rw-r--r--SetFlags.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index 7d845ebb7..cd1eaa3d6 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -223,8 +223,8 @@ macro(set_exe_flags)
add_flags_cxx("-ffast-math")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
- if (CLANG_VERSION_STRING VERSION_LESS 3.0)
- message(FATAL_ERROR "MCServer requires clang version 3.0 or higher")
+ if ("${CLANG_VERSION_STRING}" VERSION_LESS 3.0)
+ message(FATAL_ERROR "MCServer requires clang version 3.0 or higher, version is ${CLANG_VERSION_STRING}")
endif()
# clang does not provide the __extern_always_inline macro and a part of libm depends on this when using fast-math
add_flags_cxx("-D__extern_always_inline=inline")