From bc3c7c7190c5acaeb03ef82dc41cc716aaff76c6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 2 Mar 2023 22:56:06 +0100 Subject: add runtime version information --- project/cmake/build.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'project/cmake') diff --git a/project/cmake/build.py b/project/cmake/build.py index 3c4853d..9c98ba3 100644 --- a/project/cmake/build.py +++ b/project/cmake/build.py @@ -30,6 +30,7 @@ from project.configuration import Configuration from project.platform import Platform from project.toolset import Toolset, ToolsetVersion from project.utils import normalize_path, mkdir_parent, run, setup_logging +import project.version DEFAULT_PLATFORM = Platform.AUTO @@ -211,6 +212,8 @@ def _parse_args(argv=None): description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) + project.version.add_to_arg_parser(parser) + parser.add_argument('--build', metavar='DIR', dest='build_dir', type=normalize_path, help='build directory (temporary directory unless specified)') -- cgit v1.2.3