diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-01 17:22:24 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-01 17:22:24 +0200 |
commit | c6172c0238b7f5234e775f012b9395904cbd8d1e (patch) | |
tree | ad00297e82145973f00e66321eb8cc0c7e69ce39 | |
parent | e7f4231e935edae79ba2cd4d73a6e49591188bcc (diff) |
Only set cli.options if cli is configured
-rw-r--r-- | build2/buildfile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/build2/buildfile b/build2/buildfile index 7e5dd23..8dc6a14 100644 --- a/build2/buildfile +++ b/build2/buildfile @@ -85,15 +85,18 @@ obj{b context}: cxx.poptions += -DBUILD2_HOST_TRIPLET=\"$cxx.target\" # {hxx ixx cxx}{b-options}: cli{b} -cli.options += -I $src_root --include-with-brackets --include-prefix build2 \ ---guard-prefix BUILD2 --cxx-prologue "#include <build2/types-parsers>" \ ---cli-namespace build2::cl --generate-file-scanner --generate-parse \ +if $cli.configured +{ + cli.options += -I $src_root --include-with-brackets --include-prefix build2 \ +--guard-prefix BUILD2 --cxx-prologue "#include <build2/types-parsers>" \ +--cli-namespace build2::cl --generate-file-scanner --generate-parse \ --generate-specifier -# Usage options. -# -cli.options += --suppress-undocumented --long-usage --ansi-color \ + # Usage options. + # + cli.options += --suppress-undocumented --long-usage --ansi-color \ --page-usage 'build2::print_$name$_' --option-length 20 +} # Include generated cli files into the distribution. # |