]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: link denc-mod-rgw against Boost::filesystem 47803/head
authorKefu Chai <tchaikov@gmail.com>
Fri, 2 Sep 2022 12:37:26 +0000 (20:37 +0800)
committerKefu Chai <tchaikov@gmail.com>
Fri, 2 Sep 2022 12:41:53 +0000 (20:41 +0800)
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 <tserong@suse.com>
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/tools/ceph-dencoder/CMakeLists.txt

index 13529242dd76769d6a174409f9643001f0cdf1a5..a92ac5e6997381e091cdb7fbcabaa0649a71fd28 100644 (file)
@@ -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)