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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user