blob: 0983529dd3ce611d8f207d1b851523b92ca59c1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
From bedbdc263694291f04f8df51f1f44671920ead65 Mon Sep 17 00:00:00 2001
From: sin-ack <sin-ack@protonmail.com>
Date: Mon, 21 Apr 2025 17:12:13 +0200
Subject: [PATCH] Fix using the Thrift annotation library for the Python
generator
Same as commit 536ff1c00, but this time for the Python code generator.
Ref: https://github.com/facebook/fb303/commit/536ff1c002cfc2e20a044b474bb73a21350c5d69
---
build/fbcode_builder/CMake/FBThriftPyLibrary.cmake | 1 +
1 file changed, 1 insertion(+)
diff --git a/build/fbcode_builder/CMake/FBThriftPyLibrary.cmake b/build/fbcode_builder/CMake/FBThriftPyLibrary.cmake
index fa77cde71..1aed8fbf4 100644
--- a/build/fbcode_builder/CMake/FBThriftPyLibrary.cmake
+++ b/build/fbcode_builder/CMake/FBThriftPyLibrary.cmake
@@ -87,6 +87,7 @@ function(add_fbthrift_py_library LIB_NAME THRIFT_FILE)
--legacy-strict
--gen "py:${GEN_ARG_STR}"
"${thrift_include_options}"
+ -I "${FBTHRIFT_INCLUDE_DIR}"
-o "${output_dir}"
"${CMAKE_CURRENT_SOURCE_DIR}/${THRIFT_FILE}"
WORKING_DIRECTORY
--
2.49.0
|