From b301c772e8c26cb04d56e852d8e59b4b2ce48e40 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 14 Jun 2020 07:52:59 +0200 Subject: [PATCH] Fix AppleClang version detection --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c573596b8..32777aa2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -284,7 +284,7 @@ endif() if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") - if(CLANG_VERSION VERSION_LESS "600") + if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "7") set(DO_NOT_USE_LAMBDAS ON) endif() else()