1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-09 22:50:34 +02:00
Files
guix/gnu/packages/patches/obs-advanced-masks-nlohmann-json.patch
Steve George 655abc9436 gnu: obs-advanced-masks: Update to 1.5.4.
* gnu/packages/videos.scm (obs-advanced-masks): Update to 2.5.1.
  [source]: Patch so that Cmakes uses local JSON. Update style.
  [arguments]<phases>: Remove custom install phase.
  [inputs]: change qtbase to use QT6.
* gnu/packages/patches/obs-advanced-masks-nlohmann-json.patch: New file.

Change-Id: I62ed28fc7978732e3754e9158d4add67aea8e2f7
Signed-off-by: Steve George <steve@futurile.net>
2026-02-14 21:34:54 +00:00

26 lines
1.2 KiB
Diff

Description: search for nlohmann_json path
Author: Joao Eriberto Mota Filho <eriberto@debian.org>
Forwarded: https://github.com/FiniteSingularity/obs-advanced-masks/pull/86
Last-Update: 2025-09-04
Index: obs-advanced-masks/CMakeLists.txt
===================================================================
--- obs-advanced-masks.orig/CMakeLists.txt
+++ obs-advanced-masks/CMakeLists.txt
@@ -73,9 +73,13 @@ if(BUILD_OUT_OF_TREE)
add_library(nlohmann_json INTERFACE)
target_include_directories(nlohmann_json INTERFACE "${CMAKE_BINARY_DIR}/json/single_include")
else()
- include(FetchContent)
- FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)
- FetchContent_MakeAvailable(json)
+ # Try to find a system-installed nlohmann_json (Debian: nlohmann-json3-dev)
+ find_package(nlohmann_json QUIET)
+ if(NOT nlohmann_json_FOUND)
+ include(FetchContent)
+ FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)
+ FetchContent_MakeAvailable(json)
+ endif()
endif()
else()
if(OBS_VERSION VERSION_GREATER_EQUAL 30.1.0)