Debian Codegraph @

debian/patches/reliable-finding

raw
1 From a85f74a36203056540f5eea9909e148ef707d595 Mon Sep 17 00:00:00 2001
2 From: "A. Maitland Bottoms" <[email protected]>
3 Date: Wed, 4 Jan 2023 21:24:06 -0500
4 Subject: [PATCH 1/2] reliable finding The CMake interface file names vary
5 between recent versions of flatbuffers. This patch handles both cases, for
6 initial build and projects using the system-wide installation.
7
8 ---
9 CMakeLists.txt | 2 +-
10 cmake/config.cmake.in | 2 +-
11 2 files changed, 2 insertions(+), 2 deletions(-)
12
13 diff --git a/CMakeLists.txt b/CMakeLists.txt
14 index 4ad72df..e41c82f 100644
15 --- a/CMakeLists.txt
16 +++ b/CMakeLists.txt
17 @@ -35,7 +35,7 @@ set(libsigmf_deps "")
18
19 # flatbuffers
20 if (${USE_SYSTEM_FLATBUFFERS})
21 - find_package(Flatbuffers REQUIRED)
22 + find_package(FlatBuffers REQUIRED NAMES FlatBuffers Flatbuffers)
23 endif (${USE_SYSTEM_FLATBUFFERS})
24
25 if (NOT ${USE_SYSTEM_FLATBUFFERS})
26 diff --git a/cmake/config.cmake.in b/cmake/config.cmake.in
27 index 852eb2b..68fb8e0 100644
28 --- a/cmake/config.cmake.in
29 +++ b/cmake/config.cmake.in
30 @@ -13,6 +13,6 @@ if(NOT TARGET @PROJECT_NAME@::@LIBSIGMF_TARGET_NAME@)
31 include(CMakeFindDependencyMacro)
32
33 find_dependency(nlohmann_json REQUIRED)
34 - find_dependency(Flatbuffers REQUIRED)
35 + find_dependency(FlatBuffers REQUIRED NAMES FlatBuffers Flatbuffers)
36 include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
37 endif()
38 --
39 2.39.0
40