From: Thomas Goirand Date: Fri, 15 Jan 2021 11:26:14 +0000 (+0000) Subject: Another cmakelists fix X-Git-Tag: archive/raspbian/14.2.16-1+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bf1ba18816cdbb0eb1adc360e13b49d268e275f7;p=ceph.git Another cmakelists fix Forwarded: no Last-Update: 2021-01-08 This fixes the last Boost 1.74 compatibility problems. Gbp-Pq: Name another-cmakelists-fix.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index be0bb9267..412353a61 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,9 @@ endif() if(POLICY CMP0075) cmake_policy(SET CMP0075 NEW) endif() +if(POLICY CMP0093) + cmake_policy(SET CMP0093 NEW) +endif() list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules/") if(CMAKE_SYSTEM_NAME MATCHES "Linux") diff --git a/src/rgw/CMakeLists.txt b/src/rgw/CMakeLists.txt index 9bfde0e45..d9bebc6d4 100644 --- a/src/rgw/CMakeLists.txt +++ b/src/rgw/CMakeLists.txt @@ -19,6 +19,10 @@ function(gperf_generate input output) ) endfunction() +if(Boost_VERSION VERSION_GREATER_EQUAL 1.74) + add_definitions(-DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT) +endif() + set(librgw_common_srcs services/svc_finisher.cc services/svc_notify.cc