From 889b67f8bb9161efca553039fff913941f751f1b Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Fri, 2 Sep 2022 17:38:50 -0400 Subject: [PATCH] CMakeLists: Add workaround for clang 13 bug with consteval --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f7ee45a..fe42a682 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,11 @@ if (MSVC) endif() endif() +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14.0) + # Clang versions below 14 have issues with consteval in fmt: https://github.com/fmtlib/fmt/issues/2455 + add_compile_definitions(FMT_CONSTEVAL=) +endif() + option(ENABLE_OPENGL "Enables the OpenGL backend" ON) option(ENABLE_VULKAN "Enables the Vulkan backend" ON) option(ENABLE_DISCORD_RPC "Enables the Discord Rich Presence feature" ON)