diff options
author | Thomas Haller <thaller@redhat.com> | 2020-11-01 18:38:54 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-11-03 15:41:38 +0100 |
commit | 6968c4141c901f6c2fc43c7885c5907be9c206c7 (patch) | |
tree | 6edcb1c01ccf689dbfebf5ca68d151f85b023d52 | |
parent | b57198a7bcde48b9b71d1fa013f97ffa93b492ca (diff) | |
download | NetworkManager-6968c4141c901f6c2fc43c7885c5907be9c206c7.tar.gz |
build/meson: move enable_docs variable
It will be used in subdirectories. Move it.
-rw-r--r-- | meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 6ee66ab01c..bd99b79ca6 100644 --- a/meson.build +++ b/meson.build @@ -751,6 +751,8 @@ if enable_nm_cloud_setup assert(libcurl_dep.found(), 'nm-cloud-setup requires libcurl library. Use -Dnm_cloud_setup=false to disable it') endif +enable_docs = get_option('docs') + more_asserts = get_option('more_asserts') if more_asserts == 'auto' if nm_minor_version % 2 == 0 @@ -920,8 +922,6 @@ if enable_qt subdir('examples/C/qt') endif -enable_docs = get_option('docs') - if enable_docs assert(enable_introspection, '-Ddocs=true requires -Dintrospection=true') assert(meson.version().version_compare('>= 0.46.0'), '-Ddocs requires meson >= 0.46') |