From 6715325d046f3b9663fa3b290324ba9b8c3e052a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 3 Mar 2017 15:58:34 +0200 Subject: Rework build2 cli compilation --- odb/sqlite/buildfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'odb') diff --git a/odb/sqlite/buildfile b/odb/sqlite/buildfile index 4f27da6..02c3238 100644 --- a/odb/sqlite/buildfile +++ b/odb/sqlite/buildfile @@ -71,19 +71,22 @@ lib{odb-sqlite}: cxx.export.libs = $int_libs details/: { - {hxx ixx cxx}{options}: cli{options} - if $cli.configured { + cli.cxx{options}: cli{options} + cli.options += --include-with-brackets --include-prefix odb/sqlite/details \ --guard-prefix LIBODB_SQLITE_DETAILS --generate-file-scanner \ --cli-namespace odb::sqlite::details::cli --long-usage + + # Include generated cli files into the distribution. + # + cli.cxx{*}: dist = true } - # Include generated cli files into the distribution. But don't install them - # since they are only used internally in the database implementation. + # But don't install their headers since they are only used internally in the + # database implementation. # - {hxx ixx cxx}{options}: dist = true {hxx ixx}{options}: install = false } -- cgit v1.1