From 4d220221bf6c55c1e0e1ae4bbdfc386e9d88c52c Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 10 Apr 2023 14:09:23 +0200 Subject: Build: Fixed copypaste mistake in appleclang version check (cherry picked from commit 8d353f20fdc3b2e0b19bf2dd2634701852cb07a0) --- cmake/compiler/clang/settings.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/compiler') diff --git a/cmake/compiler/clang/settings.cmake b/cmake/compiler/clang/settings.cmake index 6ed3273a27d..eec7bf581a7 100644 --- a/cmake/compiler/clang/settings.cmake +++ b/cmake/compiler/clang/settings.cmake @@ -4,7 +4,7 @@ target_compile_definitions(trinity-compile-option-interface -D_BUILD_DIRECTIVE="$") set(CLANG_EXPECTED_VERSION 11.0.0) -if(CMAKE_CXX_COMPILER MATCHES "Clang") +if(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang") # apple doesnt like to do the sane thing which would be to use the same version numbering as regular clang # version number pulled from https://en.wikipedia.org/wiki/Xcode#Toolchain_versions for row matching LLVM 11 set(CLANG_EXPECTED_VERSION 12.0.5) -- cgit v1.2.3