From 01afd5f59f95f7c79da6d6cee865c2f0238e8878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E7=8E=AE=E6=96=87?= Date: Mon, 3 Mar 2025 02:27:05 +0800 Subject: [PATCH] cmake: warning flags should be private Do not set -Werror for all the code that links this library. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fda9e01bbb..b4dac8c56f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -264,7 +264,7 @@ endif(BUILD_SHARED_LIBS) if(HAVE_CLANG_THREAD_SAFETY) target_compile_options(leveldb - PUBLIC + PRIVATE -Werror -Wthread-safety) endif(HAVE_CLANG_THREAD_SAFETY)