From ea962bf0742cedc727a997e9b7b25738f0cdf465 Mon Sep 17 00:00:00 2001 From: Radovan Bast Date: Sun, 10 Apr 2016 17:24:49 +0200 Subject: [PATCH] update --cmake-options example; fixes #169 --- doc/users/faq.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/users/faq.rst b/doc/users/faq.rst index b46e833..1efae3e 100644 --- a/doc/users/faq.rst +++ b/doc/users/faq.rst @@ -47,4 +47,8 @@ How can I select CMake options via the setup script? Like this:: - $ python setup --cmake-options="-DTHIS_OPTION=ON -DTHAT_OPTION=OFF" + $ python setup --cmake-options='"-DTHIS_OPTION=ON -DTHAT_OPTION=OFF"' + +We use two sets of quotes because the shell swallows one set of them +before passing the arguments to Python. If you do not use two sets +of quotes then the setup command may end up incorrectly saved in `build/setup_command`.