add possibility to pass options to cmake via setup.py

This commit is contained in:
Radovan Bast
2015-07-29 22:33:48 +02:00
parent 8b8e95521f
commit cfe2823c09
5 changed files with 41 additions and 0 deletions

View File

@ -114,6 +114,13 @@ def test_cxx_custom():
# ------------------------------------------------------------------------------
def test_extra_cmake_options():
stdout, stderr = configure_build_and_exe('extra_cmake_options', 'python setup.py --cxx=g++ --cmake-options="-DENABLE_SOMETHING=OFF -DENABLE_FOO=ON"')
assert 'Hello World!' in stdout
# ------------------------------------------------------------------------------
def test_cxx():
stdout, stderr = configure_build_and_exe('cxx', 'python setup.py --cxx=g++')
assert 'Hello World!' in stdout