summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohann Klähn <kljohann@gmail.com>2013-01-30 23:31:39 +0100
committerJohann Klähn <kljohann@gmail.com>2013-01-30 23:37:29 +0100
commit9e3652dd4fc4bea3453b5b79f9a687501a63cb90 (patch)
tree17537bdd97cf2ec6733c6e2fe028eee596300277 /acprep
parent5ee03de0ad8c2df38bc10acf67f02cf862c6c83c (diff)
downloadfork-ledger-9e3652dd4fc4bea3453b5b79f9a687501a63cb90.tar.gz
fork-ledger-9e3652dd4fc4bea3453b5b79f9a687501a63cb90.tar.bz2
fork-ledger-9e3652dd4fc4bea3453b5b79f9a687501a63cb90.zip
acprep: pass options starting with -D to CMake
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep15
1 files changed, 10 insertions, 5 deletions
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()