diff options
-rw-r--r-- | build2/install/rule.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build2/install/rule.cxx b/build2/install/rule.cxx index ebab282..f3a9bf4 100644 --- a/build2/install/rule.cxx +++ b/build2/install/rule.cxx @@ -307,6 +307,10 @@ namespace build2 if (const dir_path* dn = lookup_install<dir_path> (t.base_scope (), var)) { + if (dn->empty ()) + fail << "empty installation directory for name " << sn << + info << "did you specified empty config." << var << "?"; + rs = resolve (t, *dn, &var); d = rs.back ().dir / dir_path (++d.begin (), d.end ()); rs.emplace_back (move (d.normalize ()), rs.back ()); |