From defc334c57dee0c20425d3858a95a33bd314bccc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 12 Mar 2024 13:10:42 +0200 Subject: Use computed value of no-version sub-option in bdep-new This makes sure the check factors in the third-party sub-option. --- bdep/new.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- cgit v1.1