]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Specify PYTHONLIBS_VERSION_STRING on the FIND_PACKAGE call
authorMichael Schroeder <mls@suse.de>
Tue, 4 Aug 2015 12:30:04 +0000 (14:30 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 4 Aug 2015 12:31:23 +0000 (14:31 +0200)
Otherwise the configure will fail for newer cmake versions, as
they expect _MAJOR/_MINOR/_COUNT to be set as well.

bindings/python/CMakeLists.txt

index 8b5c72ca10ba60b4431aadc30e5755e0185ac86b..22ddec3bafebed75b6d2f755b373e0375b4a041e 100644 (file)
@@ -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)