aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-01 17:21:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-01 17:21:34 +0200
commit768acdb5b46a49266aaa9ec70e8ae5938a0b8cb2 (patch)
treeb3c7be1f573623749c8b0c57fb6b08f3712a01b3
parent43259d803ca650b74bda47686b6cc79b615e9362 (diff)
Only set cli.options if cli is configured
-rw-r--r--odb/pgsql/buildfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/odb/pgsql/buildfile b/odb/pgsql/buildfile
index 971617c..247fee8 100644
--- a/odb/pgsql/buildfile
+++ b/odb/pgsql/buildfile
@@ -71,9 +71,12 @@ details/:
{
{hxx ixx cxx}{options}: cli{options}
- cli.options += --include-with-brackets --include-prefix odb/pgsql/details \
+ if $cli.configured
+ {
+ cli.options += --include-with-brackets --include-prefix odb/pgsql/details \
--guard-prefix LIBODB_PGSQL_DETAILS --generate-file-scanner \
--cli-namespace odb::pgsql::details::cli --long-usage --generate-specifier
+ }
# Include generated cli files into the distribution. But don't install them
# since they are only used internally in the database implementation.