From 34adfddb8c3f55c627e195696ed9538ab1c66469 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 3 Oct 2026 09:17:24 +1000 Subject: [PATCH] [client] gui: suppress third-party warnings --- repos/gui/CMakeLists.txt | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/repos/gui/CMakeLists.txt b/repos/gui/CMakeLists.txt index c31608fe..dad99d2b 100644 --- a/repos/gui/CMakeLists.txt +++ b/repos/gui/CMakeLists.txt @@ -13,24 +13,14 @@ add_library(lg_gui STATIC ) if(MSVC) - target_compile_options(lg_gui PRIVATE /fp:precise) - - set_source_files_properties(cimgui/cimgui.cpp PROPERTIES - COMPILE_OPTIONS "/clang:-Wno-error=unused-function" - ) - set_source_files_properties(cimplot/cimplot.cpp PROPERTIES - COMPILE_OPTIONS - "/clang:-Wno-error=array-bounds;/clang:-Wno-error=unused-function" + target_compile_options(lg_gui PRIVATE + /fp:precise + /w ) elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") - target_compile_options(lg_gui PRIVATE "-fno-fast-math") - - set_source_files_properties(cimgui/cimgui.cpp PROPERTIES - COMPILE_OPTIONS "-Wno-error=unused-function" - ) - set_source_files_properties(cimplot/cimplot.cpp PROPERTIES - COMPILE_OPTIONS - "-Wno-error=array-bounds;-Wno-error=unused-function" + target_compile_options(lg_gui PRIVATE + -fno-fast-math + -w ) endif()