diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-12-17 11:49:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-12-17 11:49:34 +0200 |
commit | 9740d9e777c9d19482052a37ad3a6ab25112d6d6 (patch) | |
tree | 91cb7a0485f0207e01c4bb886c4d654026b9bc84 /build2/target | |
parent | 747ff339c4be7d271a33996638b3b026a166d805 (diff) |
Use PATH search as fallback import mechanism for exe{} targets
Diffstat (limited to 'build2/target')
-rw-r--r-- | build2/target | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build2/target b/build2/target index 5c897f1..9b3c679 100644 --- a/build2/target +++ b/build2/target @@ -1013,6 +1013,18 @@ namespace build2 const string* ext, tracer&); + template <typename T> + T& + insert (const target_type& tt, + dir_path dir, + dir_path out, + string name, + const string* ext, + tracer& t) + { + return static_cast<T&> ( + insert (tt, move (dir), move (out), move (name), ext, t).first); + } template <typename T> T& |