[libdazzle] build: be consistent about option names with - or _



commit 4dcc69f0b3b0c87534b3721a6cb135dde0289a94
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jun 19 01:13:28 2017 -0700

    build: be consistent about option names with - or _

 meson.build       |    2 +-
 meson_options.txt |    4 ++--
 tests/meson.build |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index 77dd494..b447780 100644
--- a/meson.build
+++ b/meson.build
@@ -100,6 +100,6 @@ subdir('tools')
 subdir('tests')
 subdir('examples/app')
 
-if get_option('enable-gtk-doc')
+if get_option('enable_gtk_doc')
   subdir('doc')
 endif
diff --git a/meson_options.txt b/meson_options.txt
index 0e4abf6..f4232bc 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -18,10 +18,10 @@ option('package_subdir', type: 'string',
   description: 'Subdirectory to append to all installed files, for use as subproject'
 )
 
-option('enable-gtk-doc',
+option('enable_gtk_doc',
        type: 'boolean', value: false,
        description: 'Whether to generate the API reference for Dazzle')
 
-option('enable-tests',
+option('enable_tests',
        type: 'boolean', value: true,
        description: 'Whether to compile unit tests')
diff --git a/tests/meson.build b/tests/meson.build
index d7e4871..7563298 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,4 +1,4 @@
-if get_option('enable-tests')
+if get_option('enable_tests')
 
 test_env = [
   'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]