File 0001-third-party-use-nlohmann_json-from-system.patch of Package librealsense
From: Jiri Slaby <jslaby@suse.cz>
Date: Mon, 30 Sep 2024 08:42:26 +0200
Subject: third-party: use nlohmann_json from system
References: nlohmann_json-from-system
Patch-mainline: never
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
third-party/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/third-party/CMakeLists.txt
+++ b/third-party/CMakeLists.txt
@@ -5,7 +5,7 @@ add_subdirectory( "${CMAKE_CURRENT_LIST_
pop_security_flags() # remove security flags for third party, as we cannot guarantee their security enforcment
-include(CMake/external_json.cmake)
+find_package(nlohmann_json REQUIRED)
# Add additional include directories to allow file to include rosbag headers
include(${_rel_path}/realsense-file/config.cmake)