From 9e3652dd4fc4bea3453b5b79f9a687501a63cb90 Mon Sep 17 00:00:00 2001 From: Johann Klähn Date: Wed, 30 Jan 2013 23:31:39 +0100 Subject: acprep: pass options starting with -D to CMake --- acprep | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'acprep') diff --git a/acprep b/acprep index 6330a7f8..fe49be47 100755 --- a/acprep +++ b/acprep @@ -875,7 +875,7 @@ class PrepareBuild(CommandLineApp): make_args = [] for arg in args: - if arg.startswith('--'): + if arg.startswith('--') or arg.startswith('-D'): config_args.append(arg) else: make_args.append(arg) @@ -1068,12 +1068,17 @@ typical user: submodule Updates Git submodules (better to use 'pull') version Output current HEAD version to version.m4 -NOTE: If you wish to pass options to configure or make, add "--" followed by -your options. Here are some real-world examples: +NOTE: If you wish to pass options to CMake or make, add "--" followed by +your options. Those starting with "-D" or "--" will be passed on to CMake, +positional arguments and other options will be passed to make. +For the 'config' and 'configure' phase everything will be passed to CMake. + +Here are some real-world examples: ./acprep - ./acprep opt -- make -j3 - ./acprep --enable-doxygen""" + ./acprep --python + ./acprep opt make + ./acprep make doc -- -DBUILD_WEB_DOCS=1""" sys.exit(0) PrepareBuild().run() -- cgit v1.2.3