From: Michael Schroeder Date: Tue, 4 Aug 2015 12:30:04 +0000 (+0200) Subject: Specify PYTHONLIBS_VERSION_STRING on the FIND_PACKAGE call X-Git-Tag: 0.6.12~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=204406df09b45e1316f02f1f629ef79574530b3d;p=thirdparty%2Flibsolv.git Specify PYTHONLIBS_VERSION_STRING on the FIND_PACKAGE call Otherwise the configure will fail for newer cmake versions, as they expect _MAJOR/_MINOR/_COUNT to be set as well. --- diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index 8b5c72ca..22ddec3b 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -1,8 +1,7 @@ #SET (PythonLibs_FIND_VERSION 3) FIND_PACKAGE (PythonLibs) -SET (PythonInterp_FIND_VERSION ${PYTHONLIBS_VERSION_STRING}) -FIND_PACKAGE (PythonInterp REQUIRED) +FIND_PACKAGE (PythonInterp ${PYTHONLIBS_VERSION_STRING} REQUIRED) EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(True))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) IF (NOT DEFINED PYTHON_VERSION_MAJOR)