aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/buildfile15
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.
#