diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-01 17:23:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-01 17:23:52 +0200 |
commit | fa1fca26c52df81d7de43e4dcfcbf6fba55c35c4 (patch) | |
tree | f9deb426439574d9bedd964cf835b0b806f3a95d /mod/buildfile | |
parent | eca7b337dbd120716b4726013e99913207dcba2c (diff) |
Only set cli.options if cli is configured
Diffstat (limited to 'mod/buildfile')
-rw-r--r-- | mod/buildfile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mod/buildfile b/mod/buildfile index 799ed5d..6ec69fb 100644 --- a/mod/buildfile +++ b/mod/buildfile @@ -51,14 +51,17 @@ mod{brep}: \ # {hxx ixx cxx}{options}: cli{options} -# Set option prefix to the empty value to handle all unknown request parameters -# uniformly with a single catch block. -# -cli.options += --std c++11 -I $src_root --include-with-brackets \ +if $cli.configured +{ + # Set option prefix to the empty value to handle all unknown request + # parameters uniformly with a single catch block. + # + cli.options += --std c++11 -I $src_root --include-with-brackets \ --include-prefix mod --guard-prefix MOD \ --cxx-prologue "#include <mod/types-parsers>" \ --cli-namespace brep::cli --generate-file-scanner --suppress-usage \ --generate-modifier --generate-description --option-prefix "" +} # Include generated cli files into the distribution. # |