From: Kefu Chai Date: Fri, 2 Sep 2022 12:37:26 +0000 (+0800) Subject: cmake: link denc-mod-rgw against Boost::filesystem X-Git-Tag: v16.2.11~358^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F47803%2Fhead;p=ceph.git cmake: link denc-mod-rgw against Boost::filesystem to address the runtime link failure. this change is not cherry-picked from main branch. as, in main branch, the Boost::filesystem linkage is pulled in by rgw_common, which was changed to a static library in 43d10b9e44ca50700e9076a47f2c38b360d1d632. but this change is not included in pacific. so rgw added the linkage via rgw_libs CMake variable. unfortunately, the lexical scope of this variable does not not include tools/ceph-dencoder/CMakeLists.txt, so we have to add this linkage manually here. Signed-off-by: Tim Serong Signed-off-by: Kefu Chai --- diff --git a/src/tools/ceph-dencoder/CMakeLists.txt b/src/tools/ceph-dencoder/CMakeLists.txt index 13529242dd76..a92ac5e69973 100644 --- a/src/tools/ceph-dencoder/CMakeLists.txt +++ b/src/tools/ceph-dencoder/CMakeLists.txt @@ -65,6 +65,10 @@ if(WITH_RADOSGW) target_link_libraries(denc-mod-rgw rdkafka) endif() + if(WITH_RADOSGW_LUA_PACKAGES) + target_link_libraries(denc-mod-rgw + Boost::filesystem) + endif() endif() if(WITH_RBD)