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)