From 77d1d3729056c7a6d621d118ccb5ca574a7f9440 Mon Sep 17 00:00:00 2001 From: Elvis Oric Date: Wed, 30 Jan 2019 11:40:06 +0100 Subject: [PATCH] Disable installation when used as meson subproject. #1463 --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index e6867e73..fb272607 100644 --- a/meson.build +++ b/meson.build @@ -12,6 +12,7 @@ nlohmann_json_multiple_headers = declare_dependency( include_directories: include_directories('include') ) +if not meson.is_subproject() install_headers('single_include/nlohmann/json.hpp', subdir: 'nlohmann') pkgc = import('pkgconfig') @@ -19,3 +20,4 @@ pkgc.generate(name: 'nlohmann_json', version: meson.project_version(), description: 'JSON for Modern C++' ) +endif