From 56510a14717cd5484fa4ddf219d2da4d42e3d1da Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 27 Jan 2022 16:31:00 -0500 Subject: [PATCH] cmake/rgw: src/rgw and src/rgw/services are not system headers include these with -I instead of -isystem so we don't hide their compiler warnings Signed-off-by: Casey Bodley --- src/rgw/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rgw/CMakeLists.txt b/src/rgw/CMakeLists.txt index cabcba988f6..fb0c7e476ea 100644 --- a/src/rgw/CMakeLists.txt +++ b/src/rgw/CMakeLists.txt @@ -220,7 +220,7 @@ target_link_libraries(rgw_common PUBLIC spawn) target_include_directories(rgw_common - SYSTEM PUBLIC "services" + PUBLIC "services" PUBLIC "${CMAKE_SOURCE_DIR}/src/rgw" PRIVATE "${LUA_INCLUDE_DIR}") if(WITH_RADOSGW_KAFKA_ENDPOINT) @@ -310,7 +310,7 @@ add_library(rgw_a STATIC target_compile_definitions(rgw_a PUBLIC "-DCLS_CLIENT_HIDE_IOCTX") target_include_directories(rgw_a PUBLIC "${CMAKE_SOURCE_DIR}/src/dmclock/support/src") target_include_directories(rgw_a SYSTEM PUBLIC "../rapidjson/include") -target_include_directories(rgw_a SYSTEM PUBLIC "${CMAKE_SOURCE_DIR}/src/rgw") +target_include_directories(rgw_a PUBLIC "${CMAKE_SOURCE_DIR}/src/rgw") if(WITH_RADOSGW_AMQP_ENDPOINT) find_package(RabbitMQ REQUIRED)