From bde106d3e79d3d4f87a8ed4540fcc87126a1e619 Mon Sep 17 00:00:00 2001 From: Paul Cruz Date: Tue, 12 Nov 2024 07:35:42 -0800 Subject: [PATCH] Workaround build failure for range-v3 example code Summary: X-link: https://github.com/facebookincubator/zstrong/pull/1051 In `range-v3`, the calendar example app fails to build. This was not detected when building range-v3 itself because the calendar app is only added as a buildable executable when `boost` is available ([code](https://github.com/ericniebler/range-v3/blob/master/example/CMakeLists.txt#L32)), but `boost` is not marked as a required dependency of `range-v3` in the manifest ([code](https://www.internalfb.com/code/fbsource/fbcode/opensource/fbcode_builder/manifests/range-v3)). During FBOSS OSS builds however, `boost` is pulled in as an indirect dependency, so the build will fail: P1677307273 This change omits building the example code. Reviewed By: harshitgulati18 Differential Revision: D65774962 fbshipit-source-id: 7f9f1238f08d6785981a53ae669989b95c63fa43 --- build/fbcode_builder/manifests/range-v3 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/fbcode_builder/manifests/range-v3 b/build/fbcode_builder/manifests/range-v3 index f96403c83f8..e3778a368a5 100644 --- a/build/fbcode_builder/manifests/range-v3 +++ b/build/fbcode_builder/manifests/range-v3 @@ -9,3 +9,6 @@ sha256 = 376376615dbba43d3bef75aa590931431ecb49eb36d07bb726a19f680c75e20c [build] builder = cmake subdir = range-v3-0.11.0 + +[cmake.defines] +RANGE_V3_EXAMPLES=OFF