From 231ed5549bee0f97f389d245f8755629b19ce289 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 13 Dec 2022 15:14:20 +0800 Subject: [PATCH] cmake: disable warnings using -Wno-everything we are not interested in the compiling warning when building Boost, and even worse we don't want to fail the build because of the warnings which default to error. and "-w" does not disable them for us. see also the discussion at https://reviews.llvm.org/D131307. to fully disable the warnings, let's add -Wno-everything to the cflags. Signed-off-by: Kefu Chai --- cmake/modules/BuildBoost.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index af245075cf26..8db3de959634 100644 --- a/cmake/modules/BuildBoost.cmake +++ b/cmake/modules/BuildBoost.cmake @@ -108,7 +108,7 @@ function(do_build_boost root_dir version) "using ${toolset}" " : " " : ${CMAKE_CXX_COMPILER}" - " : -fPIC -w" + " : -fPIC -w -Wno-everything" " ;\n") if(with_python_version) find_package(Python3 ${with_python_version} QUIET REQUIRED -- 2.47.3