aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-03-12 13:10:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-03-12 13:10:42 +0200
commitdefc334c57dee0c20425d3858a95a33bd314bccc (patch)
tree7588128d00042fac9f3f8773438c5cdf6cc9c20a
parentc56aec14d64c4f1ed7d986429f93cad6f0d6dad2 (diff)
Use computed value of no-version sub-option in bdep-new
This makes sure the check factors in the third-party sub-option.
-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";
}