From 67a2d708dc4b29da8ae0bf039e25081e87c8d55a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 11 Oct 2023 10:33:07 +0200 Subject: cmake: kill -Wfloat-equal It crashes clang 16. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b58b976..c52a2a2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,6 +135,7 @@ if(MSVC) add_link_options(-HIGHENTROPYVA) endif() else() + add_compile_options(-Wno-float-equal) if(NOT WIN32) add_compile_options($<$:-fuse-cxa-atexit>) endif() @@ -178,6 +179,10 @@ endif() fm_run_hook(fm-userconfig-src) +if(CMAKE_COMPILER_IS_GNUCXX) + add_compile_options(-Wno-float-equal) +endif() + if (CMAKE_CXX_COMPILER_ID MATCHES "Clang$") add_definitions(-D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) add_compile_options(-Wno-shift-op-parentheses) -- cgit v1.2.3