aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/ci/cmake.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-18 14:39:19 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-18 14:46:35 +0300
commit00d21c8d6d202375761f332084e01661241376a9 (patch)
tree79c6cc2e03ecfbadee367362e7277af0444b3237 /project/ci/cmake.py
parentREADME: update (diff)
downloadcmake-common-00d21c8d6d202375761f332084e01661241376a9.tar.gz
cmake-common-00d21c8d6d202375761f332084e01661241376a9.zip
project.ci: --install picks the directory automatically
Diffstat (limited to '')
-rw-r--r--project/ci/cmake.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/project/ci/cmake.py b/project/ci/cmake.py
index 2f801de..67ad13a 100644
--- a/project/ci/cmake.py
+++ b/project/ci/cmake.py
@@ -20,8 +20,8 @@ def _parse_args(dirs, argv=None):
description=dirs.get_cmake_help(),
formatter_class=argparse.RawDescriptionHelpFormatter)
- parser.add_argument('--install', metavar='DIR', dest='install_dir',
- help='install directory')
+ parser.add_argument('--install', action='store_true',
+ help='install the project')
parser.add_argument('--boost', metavar='DIR', dest='boost_dir',
help='set Boost directory path')
parser.add_argument('--toolset', metavar='TOOLSET',
@@ -35,9 +35,10 @@ def _parse_args(dirs, argv=None):
def build_ci(dirs, argv=None):
args = _parse_args(dirs, argv)
+ install_dir = dirs.get_install_dir() if args.install else None
params = BuildParameters(dirs.get_src_dir(),
build_dir=dirs.get_cmake_dir(),
- install_dir=args.install_dir,
+ install_dir=install_dir,
platform=dirs.get_platform(),
configuration=dirs.get_configuration(),
boost_dir=args.boost_dir or dirs.get_boost_dir(),