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 <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2022-01-27 16:31:00 -05:00
parent 13a37c7f73
commit 56510a1471

View File

@ -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)