]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: define BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT for rgw tests 40205/head
authorKefu Chai <kchai@redhat.com>
Fri, 19 Mar 2021 04:46:17 +0000 (12:46 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 19 Mar 2021 12:35:52 +0000 (20:35 +0800)
otherwise unittest_rbd_mirror does not compile with boost v1.75

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/rgw/CMakeLists.txt

index 7817a42ef9ab8d8bbc882ed8c46bf5f8efa8d08e..00d55fa9397ebcf85eeecbd7f9eab89feb210c6c 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