From 45310daf3b2c6cfc5e3170d47b54ba6ce04dcc29 Mon Sep 17 00:00:00 2001 From: Quinton Miller Date: Wed, 17 Jun 2020 12:09:34 +0800 Subject: [PATCH] Fix CI for old CMake versions `GREATER_EQUAL` was introduced in CMake 3.7 but Travis is still using 3.5.1, so `GREATER` should be used instead. --- clang/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index 2fef018..c7e5036 100644 --- a/clang/CMakeLists.txt +++ b/clang/CMakeLists.txt @@ -16,7 +16,7 @@ string(REGEX MATCH "^([0-9]+)" LLVM_VER ${LLVM_PACKAGE_VERSION}) message(STATUS "LLVM Major version: ${LLVM_VER}") # If LLVM 10+ change std version -if(LLVM_VER GREATER_EQUAL 10) +if(LLVM_VER GREATER 9) message(STATUS "Setting std version: c++14") set(CMAKE_CXX_STANDARD_14) else()