aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-04-10 14:09:23 +0200
committerShauren <shauren.trinity@gmail.com>2023-04-10 14:09:23 +0200
commit8d353f20fdc3b2e0b19bf2dd2634701852cb07a0 (patch)
tree370f3fb46cf537ef1ef34a62d167d81ef6c62b9f /cmake
parent89e09dc44ed15567f77f862d1936e8e0d9019456 (diff)
Build: Fixed copypaste mistake in appleclang version check
Diffstat (limited to 'cmake')
-rw-r--r--cmake/compiler/clang/settings.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/compiler/clang/settings.cmake b/cmake/compiler/clang/settings.cmake
index 6cfc8ff30aa..e8944bf3294 100644
--- a/cmake/compiler/clang/settings.cmake
+++ b/cmake/compiler/clang/settings.cmake
@@ -6,7 +6,7 @@ target_compile_definitions(trinity-compile-option-interface
-D_BUILD_DIRECTIVE="$<CONFIG>")
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)