aboutsummaryrefslogtreecommitdiff
path: root/bdep/config.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-08-09 14:17:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-08-09 14:17:06 +0200
commit055e65a0f93ab873c8998cea900229f04beb0d98 (patch)
treed66f693053e29120039025d44e9d1d3c14496fed /bdep/config.cxx
parent1b6a665ead3af91c3ce9c0a8492300c6f86e6f2a (diff)
Generate smarter glue buildfile that reads packages.manifest
Diffstat (limited to 'bdep/config.cxx')
-rw-r--r--bdep/config.cxx18
1 files changed, 4 insertions, 14 deletions
diff --git a/bdep/config.cxx b/bdep/config.cxx
index af84c59..d62ad3e 100644
--- a/bdep/config.cxx
+++ b/bdep/config.cxx
@@ -120,8 +120,10 @@ namespace bdep
name = move (s);
}
- // Verify the configuration directory is not inside one of the packages or
- // the project itself if it has a glue buildfile.
+ // Verify the configuration directory is not inside one of the packages.
+ //
+ // Note that the new version of our glue buildfile is smart enough to allow
+ // creation of configurations inside the project root.
//
static void
verify_configuration_path (const dir_path& cfg,
@@ -136,18 +138,6 @@ namespace bdep
fail << "configuration directory " << cfg << " is inside package "
<< p.name << " (" << d << ")";
}
-
- if (cfg.sub (prj))
- {
- path bf;
- if (exists (bf = prj / "buildfile") || exists (bf = prj / "build2file"))
- {
- fail << "configuration directory " << cfg << " is inside project "
- << "directory " << prj <<
- info << "remove glue " << bf << " if you would like to keep "
- << "configurations inside your project";
- }
- }
}
shared_ptr<configuration>