From ca82fafac5a881e893cc101c1dde8039b4d6f220 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 24 Jul 2025 21:38:10 +0200 Subject: [PATCH] build: Add more debug information to nlohmann::json error messages --- cmake/build_helpers.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index fef04f24b..e336367b7 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -844,6 +844,7 @@ macro(addBundledLibraries) find_package(nlohmann_json 3.10.2 REQUIRED) set(NLOHMANN_JSON_LIBRARIES nlohmann_json::nlohmann_json) endif() + add_compile_definitions(JSON_NO_IO=1 JSON_DIAGNOSTICS=1) if (NOT USE_SYSTEM_LUNASVG) add_subdirectory(${THIRD_PARTY_LIBS_FOLDER}/lunasvg EXCLUDE_FROM_ALL)