diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-24 10:54:28 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-24 10:54:28 +0100 |
commit | 7d659dbe06cd8efc1d6eb4ef2c5fbc8ae27a4568 (patch) | |
tree | 70a96262526a0b69b4b3133bd53830123fdc5d78 | |
parent | 1a6b1d3c5d5aa0b8437bd04d7072740a5c6c08f6 (diff) |
cmake: fix condition
Earlier clang isn't supported due to lack of constexpr std::bit_cast.
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 1 insertions, 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($<$<COMPILE_LANGUAGE:CXX>:$<$<CONFIG:DEBUG>:-D_LIBCPP_ENABLE_ASSERTIONS>>) add_compile_options(-Wno-reserved-macro-identifier) add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wno-ambiguous-reversed-operator>) |