0
0
mirror of https://github.com/monero-project/kovri synced 2025-10-06 00:32:51 +02:00

CMake: set AppleClang detection and min version

This commit is contained in:
anonimal
2018-07-26 07:36:34 +00:00
parent a6faac588f
commit ec33da058e

View File

@@ -120,6 +120,11 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
message(FATAL_ERROR "Clang 3.5 or higher is required")
endif()
set(CLANG TRUE)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0.0)
message(FATAL_ERROR "AppleClang 8.0.0 or higher is required")
endif()
set(CLANG TRUE)
endif()
# Require C++14 support (minimum version compilers guarantee this)