summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-09-22 20:49:17 +0200
committerCarl Hetherington <cth@carlh.net>2025-09-22 22:38:57 +0200
commit8c2822db1f40614b78bc4ecbd0498c20e05e021c (patch)
treee3144ab8a1494042a395148393674f1e3b94eaaf /wscript
parent494816f6205451c1fd41d881235d5a24e04db5e2 (diff)
Add basic JSON verification report (#1823).1823-json
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/wscript b/wscript
index 052bb014..f59dda7f 100644
--- a/wscript
+++ b/wscript
@@ -285,6 +285,9 @@ def configure(conf):
if haru:
conf.env.append_value('LIBDCP_HAVE_HARU', '1')
+ if conf.check_cxx(header_name="nlohmann/json.hpp", uselib_store='JSON', define_name='LIBDCP_HAVE_JSON', mandatory=False):
+ conf.env.append_value('LIBDCP_HAVE_JSON', '1')
+
if not conf.env.DISABLE_TESTS:
conf.recurse('test')
if conf.options.enable_gcov: