File: 0003-Export-jsoncpp-link.patch

package info (click to toggle)
cppdap 1.58.0a-6~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 904 kB
  • sloc: cpp: 6,590; ansic: 1,184; sh: 123; makefile: 16
file content (31 lines) | stat: -rw-r--r-- 932 bytes parent folder | download
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
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Sun, 2 Jul 2023 23:00:01 +0200
Subject: Export jsoncpp link

---
 cmake/Config.cmake.in | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/cmake/Config.cmake.in b/cmake/Config.cmake.in
index 384aa3f..04c4357 100644
--- a/cmake/Config.cmake.in
+++ b/cmake/Config.cmake.in
@@ -13,13 +13,10 @@
 # limitations under the License.
 
 @PACKAGE_INIT@
-include(CMakeFindDependencyMacro)
-
+if(NOT TARGET JsonCpp::JsonCpp)
+    include(CMakeFindDependencyMacro)
+    find_dependency(jsoncpp)
+endif()
 include("${CMAKE_CURRENT_LIST_DIR}/@CPPDAP_TARGETS_EXPORT_NAME@.cmake")
 check_required_components("@CPPDAP_TARGET_NAME@")
 
-if ( @CPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE@ )
-    find_dependency(nlohmann_json CONFIG)
-elseif( @CPPDAP_USE_EXTERNAL_RAPIDJSON_PACKAGE@ )
-    find_dependency(RapidJSON CONFIG)
-endif()
\ No newline at end of file