Give the current Python version to the CMake builder when building the Linphone Python module.

This commit is contained in:
Ghislain MARY 2017-02-13 17:49:36 +01:00
parent 0a72663581
commit 843a845c95

View file

@ -77,6 +77,7 @@ class PythonTarget(prepare.Target):
self.config_file = 'configs/config-python.cmake'
self.output = 'OUTPUT/' + self.name
self.external_source_path = os.path.join(current_path, 'submodules')
self.additional_args += ["-DLINPHONE_BUILDER_PYTHON_VERSION={}.{}".format(sys.version_info.major, sys.version_info.minor)]
class PythonRaspberryTarget(prepare.Target):