From dc9f6ab5618508684f225618ea3849b143593e97 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 21 Oct 2026 19:05:54 -0700 Subject: [PATCH] Find Boost.Filesystem directly in the OSS CMake build Summary: EdenFS uses `boost::filesystem` directly in `EdenConfig`, `EdenMount`, `Overlay`, `FsInodeCatalog`, `EphemeralFsInodeCatalog`, `OverlayChecker`, `EdenInit`, `PrjfsDispatcherImpl` and the privhelper test server, but its CMake build never looks Boost up. It links only because folly's exported CMake config brings `Boost::filesystem` along. Once `folly::fs` moves to `std::filesystem` and folly drops that dependency (D125722811), the OSS EdenFS build fails to link. Find Boost.Filesystem in `EdenConfigChecks.cmake` and link `Boost::filesystem` into the libraries that compile those files: `eden_config`, `eden_inodes`, `eden_fscatalog`, `eden_overlay_checker`, `eden_service` and `eden_fuse_privhelper_test`. The lookup omits `MODULE`, which permits Boost package-config fallback, so it keeps working where CMake no longer ships FindBoost (CMP0167). Add `boost` to the eden getdeps manifest. This matches the edencommon fix (D126570941). Reviewed By: genevievehelsel Differential Revision: D126769174 fbshipit-source-id: edb53a072e6de5510d51943a05a08c1ef2c06cd8 --- build/fbcode_builder/manifests/eden | 1 + 1 file changed, 1 insertion(+) diff --git a/build/fbcode_builder/manifests/eden b/build/fbcode_builder/manifests/eden index 9fc3bf722..c9e729034 100644 --- a/build/fbcode_builder/manifests/eden +++ b/build/fbcode_builder/manifests/eden @@ -18,6 +18,7 @@ builder = cmake [dependencies] blake3 +boost googletest folly fbthrift