From: Willem Jan Withagen Date: Wed, 6 Mar 2019 21:53:21 +0000 (+0100) Subject: build/rgw: unittest_rgw_dmclock_scheduler does not need Boost_LIBRARIES X-Git-Tag: v14.2.0~73^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F26799%2Fhead;p=ceph.git build/rgw: unittest_rgw_dmclock_scheduler does not need Boost_LIBRARIES Otherwise linking could error like: ``` /usr/local/bin/ld: /usr/local/lib/libboost_python27.so: undefined reference to `PyUnicodeUCS4_FromEncodedObject' /usr/local/bin/ld: /usr/local/lib/libboost_python27.so: undefined reference to `PyNumber_InPlaceDivide' ........ /usr/local/bin/ld: /usr/local/lib/libboost_python27.so: undefined reference to `PyStaticMethod_Type' /usr/local/bin/ld: /usr/local/lib/libboost_python27.so: undefined reference to `PyTuple_Size' c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[2]: *** [src/test/rgw/CMakeFiles/unittest_rgw_dmclock_scheduler.dir/build.make:147: bin/unittest_rgw_dmclock_scheduler] Error 1 ``` Signed-off-by: Willem Jan Withagen --- diff --git a/src/test/rgw/CMakeLists.txt b/src/test/rgw/CMakeLists.txt index 81972e016ca4..9b2c6b63217d 100644 --- a/src/test/rgw/CMakeLists.txt +++ b/src/test/rgw/CMakeLists.txt @@ -140,7 +140,7 @@ add_ceph_unittest(unittest_rgw_string) # unitttest_rgw_dmclock_queue add_executable(unittest_rgw_dmclock_scheduler test_rgw_dmclock_scheduler.cc $) add_ceph_unittest(unittest_rgw_dmclock_scheduler) -target_link_libraries(unittest_rgw_dmclock_scheduler ${rgw_libs} dmclock ${Boost_LIBRARIES}) +target_link_libraries(unittest_rgw_dmclock_scheduler ${rgw_libs} dmclock) if(WITH_BOOST_CONTEXT) target_compile_definitions(unittest_rgw_dmclock_scheduler PRIVATE BOOST_COROUTINES_NO_DEPRECATION_WARNING) target_link_libraries(unittest_rgw_dmclock_scheduler Boost::coroutine Boost::context)