domoticz: fix build with python and cmake <= 3.7
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 28 Nov 2018 23:56:33 +0000 (00:56 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 29 Nov 2018 15:55:40 +0000 (16:55 +0100)
commit7367a8cd59ccbb8565277ea6ba96052169f0e16b
tree4985efa7304efe0ba64181bb16231d128db08b70
parent3301b6e1b2e8b22f6caef58ce9289f1ada147f67
domoticz: fix build with python and cmake <= 3.7

domoticz will fail to build with python and older cmake
Indeed, find_package(PythonLibs 3.4) will not recognize python 3.7 until
cmake 3.7 and the following commit:
https://github.com/Kitware/CMake/commit/c31573b9641e0f1bc7a34149506db51f3494323b

To fix this, add a call to find_package(PythonInterp). Indeed, if
FindPythonInterp has already found the major and minor version, that
version will be inserted between the user supplied versions and the
stock version list since cmake in version 3.1 and
https://github.com/Kitware/CMake/commit/3816cd2dc7a7cc220e4f1b1e87fee986545b9cb3

Fixes:
 - http://autobuild.buildroot.org/results/8e82501a7b49da628ec026132ffca44c0c813040

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/domoticz/0002-CMakeLists.txt-fix-build-with-python-and-cmake-3.7.patch [new file with mode: 0644]