summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-09-06 15:55:06 +0200
committerworktycho <work.tycho@gmail.com>2014-09-06 15:55:06 +0200
commitf7d06f093e2303336ab686a2b2d2bcd1debe101a (patch)
treeaafa5b37bd1af7a0930f38a4b75e21a33a949784 /SetFlags.cmake
parentImprove error message (diff)
downloadcuberite-f7d06f093e2303336ab686a2b2d2bcd1debe101a.tar
cuberite-f7d06f093e2303336ab686a2b2d2bcd1debe101a.tar.gz
cuberite-f7d06f093e2303336ab686a2b2d2bcd1debe101a.tar.bz2
cuberite-f7d06f093e2303336ab686a2b2d2bcd1debe101a.tar.lz
cuberite-f7d06f093e2303336ab686a2b2d2bcd1debe101a.tar.xz
cuberite-f7d06f093e2303336ab686a2b2d2bcd1debe101a.tar.zst
cuberite-f7d06f093e2303336ab686a2b2d2bcd1debe101a.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 cd1eaa3d6..69a9a59a0 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, version is ${CLANG_VERSION_STRING}")
+ if ("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS 3.0)
+ message(FATAL_ERROR "MCServer requires clang version 3.0 or higher, version is ${CMAKE_CXX_COMPILER_VERSION}")
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")