summaryrefslogtreecommitdiff
path: root/devel/avro-cpp/files/patch-CMakeLists.txt
blob: 44b5fdbe955ea9f3b47dbf76ccc9f9f5cf0019ce (plain) (blame)
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
29
30
31
Reference:	https://github.com/apache/avro/commit/9d57bab596b6b3b5c1ca25b06e2c7aede8f32263

--- CMakeLists.txt.orig	2024-07-26 07:46:40 UTC
+++ CMakeLists.txt
@@ -82,15 +82,7 @@ find_package (Boost 1.38 REQUIRED
 find_package (Boost 1.38 REQUIRED
     COMPONENTS filesystem iostreams program_options regex system)
 
-include(FetchContent)
-FetchContent_Declare(
-        fmt
-        GIT_REPOSITORY  https://github.com/fmtlib/fmt.git
-        GIT_TAG         10.2.1
-        GIT_PROGRESS    TRUE
-        USES_TERMINAL_DOWNLOAD TRUE
-)
-FetchContent_MakeAvailable(fmt)
+find_package (fmt 10.2.1 REQUIRED)
 
 find_package(Snappy)
 if (SNAPPY_FOUND)
@@ -217,7 +209,8 @@ unittest (CommonsSchemasTests)
 unittest (AvrogencppTestReservedWords)
 unittest (CommonsSchemasTests)
 
-add_dependencies (AvrogencppTestReservedWords cpp_reserved_words_hh)
+add_dependencies (AvrogencppTestReservedWords cpp_reserved_words_hh
+    cpp_reserved_words_union_typedef_hh)
 
 add_dependencies (AvrogencppTests bigrecord_hh bigrecord_r_hh bigrecord2_hh
     tweet_hh