From bf30407df6d96feee1d5104a19fb9cf7d74d068d Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Fri, 8 Nov 2024 08:02:33 +0100 Subject: [PATCH] Fix to include json.hpp only when VISP_HAVE_NLOHMANN_JSON is defined --- modules/detection/src/dnn/vpDetectorDNNOpenCV.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/detection/src/dnn/vpDetectorDNNOpenCV.cpp b/modules/detection/src/dnn/vpDetectorDNNOpenCV.cpp index 4a89ee3a61..cfa8b65722 100644 --- a/modules/detection/src/dnn/vpDetectorDNNOpenCV.cpp +++ b/modules/detection/src/dnn/vpDetectorDNNOpenCV.cpp @@ -63,8 +63,10 @@ #include // for Rect, Point, Size #include // for Net, blobFromImage +#ifdef VISP_HAVE_NLOHMANN_JSON #include VISP_NLOHMANN_JSON(json.hpp) // for basic_json #include VISP_NLOHMANN_JSON(json_fwd.hpp) // for json +#endif #include // for vpImageConvert #include // for vpIoTools