aboutsummaryrefslogtreecommitdiff
path: root/build/cli/target.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-02 14:24:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-02 14:45:13 +0200
commitbecea217436a79b7ef37a023da6cb4c560225a71 (patch)
tree5017f0ad3bc4d78ad737f4dc2b8b2036bb5f5664 /build/cli/target.cxx
parent685fe65f6b26b9e57c3d10cfe68c66d8baff8a68 (diff)
Redo extension derivation for file{}, doc{}, and cli{}
We now first check the 'extension' variable, then use the default.
Diffstat (limited to 'build/cli/target.cxx')
-rw-r--r--build/cli/target.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/cli/target.cxx b/build/cli/target.cxx
index a480633..6eef99b 100644
--- a/build/cli/target.cxx
+++ b/build/cli/target.cxx
@@ -15,13 +15,15 @@ namespace build
{
// cli
//
- constexpr const char cli_ext[] = "cli";
+ constexpr const char cli_ext_var[] = "extension";
+ constexpr const char cli_ext_def[] = "cli";
+
const target_type cli::static_type
{
"cli",
&file::static_type,
&target_factory<cli>,
- &target_extension_fix<cli_ext>,
+ &target_extension_var<cli_ext_var, cli_ext_def>,
&search_file,
false
};