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