From c6172c0238b7f5234e775f012b9395904cbd8d1e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 1 Sep 2016 17:22:24 +0200 Subject: Only set cli.options if cli is configured --- build2/buildfile | 15 +++++++++------ 1 file 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 " \ ---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 " \ +--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. # -- cgit v1.1