diff options
-rw-r--r-- | bpkg/buildfile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bpkg/buildfile b/bpkg/buildfile index d35cc22..ca32b64 100644 --- a/bpkg/buildfile +++ b/bpkg/buildfile @@ -50,12 +50,13 @@ $libs # source files instead of using the cli.cxx{} group (it won't be there # unless the module is loaded). # -# @@ TODO: make it optional. -# @@ The cli{} target won't be available while it would be nice to -# detect that .cli file is newer than the generated files. Hack: -# use ctt= cli.used ? cli : file, then $ctt{common-options}. Uh. -# -using cli +using? cli + +if! $cli.loaded +{ + define cli: file + cli{*}: extension = cli +} {hxx ixx cxx}{common-options}: cli{common-options} {hxx ixx cxx}{configuration-options}: cli{configuration-options} |