diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-07-23 10:56:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-07-23 10:56:12 +0200 |
commit | cf98cf8fd3f7b10b3eceddb2d99b78601c9cd719 (patch) | |
tree | d3408faa861db1c76ef9030cbbc57b19b796c7ff | |
parent | f2a39f37386181820c3ac9c36431bd1ba0c7d847 (diff) |
Use host builds class for bdep-new-created executable projects
-rw-r--r-- | bdep/new.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx index 5998630..359d266 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -1403,8 +1403,10 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args) os << "description-file: " << readme_f->leaf (out).posix_representation () << '\n'; os << "url: https://example.org/" << (pn ? pn->string () : n) << '\n' << "email: " << pe << '\n' - << "#build-error-email: " << pe << '\n' - << "depends: * build2 >= 0.13.0" << '\n' + << "#build-error-email: " << pe << '\n'; + if (t == type::exe) + os << "builds: host : &default" << '\n'; + os << "depends: * build2 >= 0.13.0" << '\n' << "depends: * bpkg >= 0.13.0" << '\n' << "#depends: libhello ^1.0.0" << '\n'; os.close (); |