]> git-server-git.apps.pok.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)
committerCasey Bodley <cbodley@redhat.com>
Thu, 8 Apr 2021 17:46:31 +0000 (13:46 -0400)
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 c4aa22db8174931a83c6dccc9bb98028b36a9abb..24dba562d14e7f00d2d513b4b723898a1bc5c44d 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