CMakeLists: Add workaround for clang 13 bug with consteval

This commit is contained in:
OatmealDome 2022-09-02 17:38:50 -04:00
parent 80b31a032e
commit 889b67f8bb

View file

@ -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)