diff options
| author | Shauren <shauren.trinity@gmail.com> | 2023-04-10 00:08:32 +0200 | 
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2024-02-26 12:23:57 +0100 | 
| commit | 367c5db9f499381634da05e02890616c78a0ff37 (patch) | |
| tree | d5910e539c772b83d48ae1a1fe6d37e2b01a1387 /cmake/compiler | |
| parent | 66abca15933fcc6bfdd6dba71ee725da4e906af3 (diff) | |
Core/Misc: Fix build with libc++
Closes #28909
(cherry picked from commit 083b8d6c846cfdf75abb1fae481a3eeb25c13c56)
Diffstat (limited to 'cmake/compiler')
| -rw-r--r-- | cmake/compiler/clang/settings.cmake | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/compiler/clang/settings.cmake b/cmake/compiler/clang/settings.cmake index 02bdc8e2583..6ed3273a27d 100644 --- a/cmake/compiler/clang/settings.cmake +++ b/cmake/compiler/clang/settings.cmake @@ -4,6 +4,11 @@ target_compile_definitions(trinity-compile-option-interface      -D_BUILD_DIRECTIVE="$<CONFIG>")  set(CLANG_EXPECTED_VERSION 11.0.0) +if(CMAKE_CXX_COMPILER MATCHES "Clang") +  # 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) +endif()  if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS CLANG_EXPECTED_VERSION)    message(FATAL_ERROR "Clang: TrinityCore requires version ${CLANG_EXPECTED_VERSION} to build but found ${CMAKE_CXX_COMPILER_VERSION}")  | 
