aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bdep/new.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index 139fe17..185b099 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -745,7 +745,7 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args)
// header generation needs to be disabled if no-subdir-include is
// specified.
//
- if (t == type::lib && !t.lib_opt.no_version ())
+ if (t == type::lib && ver)
fail << "generated version header is not supported in this layout" <<
info << "specify --type|-t,no-version explicitly";
}