Commit 77d1d372 authored by Elvis Oric's avatar Elvis Oric

Disable installation when used as meson subproject. #1463

parent 68ec3eb8
...@@ -12,6 +12,7 @@ nlohmann_json_multiple_headers = declare_dependency( ...@@ -12,6 +12,7 @@ nlohmann_json_multiple_headers = declare_dependency(
include_directories: include_directories('include') include_directories: include_directories('include')
) )
if not meson.is_subproject()
install_headers('single_include/nlohmann/json.hpp', subdir: 'nlohmann') install_headers('single_include/nlohmann/json.hpp', subdir: 'nlohmann')
pkgc = import('pkgconfig') pkgc = import('pkgconfig')
...@@ -19,3 +20,4 @@ pkgc.generate(name: 'nlohmann_json', ...@@ -19,3 +20,4 @@ pkgc.generate(name: 'nlohmann_json',
version: meson.project_version(), version: meson.project_version(),
description: 'JSON for Modern C++' description: 'JSON for Modern C++'
) )
endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment