From 7d659dbe06cd8efc1d6eb4ef2c5fbc8ae27a4568 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 24 Mar 2023 10:54:28 +0100 Subject: cmake: fix condition Earlier clang isn't supported due to lack of constexpr std::bit_cast. --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c913f94b..e87ec558 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -150,8 +150,7 @@ else() endif() endif() -if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL "13.3" OR - CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL "13.0") +if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") add_definitions($<$:$<$:-D_LIBCPP_ENABLE_ASSERTIONS>>) add_compile_options(-Wno-reserved-macro-identifier) add_compile_options($<$:-Wno-ambiguous-reversed-operator>) -- cgit v1.2.3