mirror of
https://github.com/nlohmann/json.git
synced 2024-11-23 22:19:02 +08:00
Disable installation when used as meson subproject. #1463
This commit is contained in:
parent
68ec3eb8d6
commit
77d1d37290
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user