diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-22 08:05:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-22 08:07:05 +0200 |
commit | c2589526054b394052fe59e29e58fcdd284d81f3 (patch) | |
tree | faed5a338274ec8cd8720e47572d39f2864443d6 /bdep/new.cxx | |
parent | 8717405eb2869115a5abe4b146fa5e73421467d4 (diff) |
Diagnose if configuration is inside package
Diffstat (limited to 'bdep/new.cxx')
-rw-r--r-- | bdep/new.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx index 2892262..e5f4329 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -996,22 +996,25 @@ namespace bdep if (ca || cc) { + package_locations pkgs; + + if (t != type::empty) + pkgs.push_back (package_location {n, dir_path ()}); // prj == pkg + configurations cfgs { cmd_init_config ( o, o, prj, + pkgs, db, ca ? o.config_add () : o.config_create (), args, ca, cc)}; - if (t != type::empty) - { - package_locations pkgs {{n, dir_path ()}}; // project == package + if (!pkgs.empty ()) cmd_init (o, prj, db, cfgs, pkgs, scan_arguments (args) /* pkg_args */); - } } return 0; |