aboutsummaryrefslogtreecommitdiff
path: root/devel/fbthrift/files/patch-thrift_lib_cpp2_CMakeLists.txt
blob: b5d6202999fc8b426a8969fc1d60b47f8cb60468 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Fix race condition with Ninja >= 1.12.0 where any_rep_types.h is not generated
before Any.cpp is compiled.

https://github.com/facebook/fbthrift/pull/599

--- thrift/lib/cpp2/CMakeLists.txt.orig	2024-05-02 22:42:02 UTC
+++ thrift/lib/cpp2/CMakeLists.txt
@@ -109,8 +109,8 @@ add_library(
   type/TypeRegistry.cpp
   type/UniversalName.cpp
 )
-add_dependencies(thrifttype type-cpp2-target thriftannotation thrifttyperep
-  thriftprotocol)
+add_dependencies(thrifttype any_rep-cpp2-target type-cpp2-target
+  thriftannotation thrifttyperep thriftprotocol)
 target_link_libraries(
   thrifttype
   PUBLIC