Fix AppleClang version detection

This commit is contained in:
Carles Fernandez 2020-06-14 07:52:59 +02:00
parent ae50ebbaa5
commit b301c772e8
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
1 changed files with 1 additions and 1 deletions

View File

@ -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()