]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: define BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT for rgw tests
authorKefu Chai <kchai@redhat.com>
Fri, 19 Mar 2021 04:46:17 +0000 (12:46 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 11 Apr 2021 02:13:23 +0000 (10:13 +0800)
otherwise unittest_rgw_iam_policy does not compile with boost v1.75

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 36d2f006c6cf309d60857ce85325489865e8374c)

src/test/rgw/CMakeLists.txt

index 29b1db182a50d80810ebd03de6ff33bfcc503cee..5669c2e3df8b16866273e9704c3bbf86d3a1e5bd 100644 (file)
@@ -1,3 +1,6 @@
+if(Boost_VERSION VERSION_GREATER_EQUAL 1.74)
+  add_definitions(-DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT)
+endif()
 
 if(WITH_RADOSGW_AMQP_ENDPOINT)
   # amqp mock library