From 100371d25b12b4a2154844ac878f72b3685bd43c Mon Sep 17 00:00:00 2001 From: Aa! Date: Thu, 21 Jan 2021 15:13:40 +0100 Subject: [PATCH] Debian fix? --- Findnlohmann_json.cmake | 11 +++++++++++ debian/control | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Findnlohmann_json.cmake diff --git a/Findnlohmann_json.cmake b/Findnlohmann_json.cmake new file mode 100644 index 0000000..1161db0 --- /dev/null +++ b/Findnlohmann_json.cmake @@ -0,0 +1,11 @@ +find_path(NLOHMANNJSON_INCLUDE_DIR nlohmann/json.hpp) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(NlohmannJson DEFAULT_MSG NLOHMANNJSON_INCLUDE_DIR) + +if(NLOHMANNJSON_FOUND) + set(NLOHMANNJSON_INCLUDE_DIRS ${NLOHMANNJSON_INCLUDE_DIR}) +endif() + +mark_as_advanced(NLOHMANNJSON_INCLUDE_DIR) + diff --git a/debian/control b/debian/control index 4df525e..8c8b07d 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: kodi-pvr-freebox Priority: extra Maintainer: Aassif Benassarou Build-Depends: debhelper (>= 9.0.0), cmake, kodi-addon-dev, - zlib1g-dev, nlohmann-json3-dev, libssl-dev + zlib1g-dev, nlohmann-json-dev (>= 3.1) | nlohmann-json3-dev (>= 3.1), libssl-dev Standards-Version: 4.1.2 Section: libs