From 643d678146f0e292ed211e9fe214c145e697d2d4 Mon Sep 17 00:00:00 2001 From: Alejandro Hernandez Date: Fri, 3 Feb 2017 10:11:58 -0500 Subject: Support python2 based pykms binding Previously only binding with python3 was supported, this patch allows compilation of pykms with python3 or python2. When compiling with python2 some of the python scripts located in the py/test will not work since they import python3 only modules Signed-off-by: Alejandro Hernandez Signed-off-by: Tomi Valkeinen --- py/pykms/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py') diff --git a/py/pykms/CMakeLists.txt b/py/pykms/CMakeLists.txt index a671b7a..505c0c3 100644 --- a/py/pykms/CMakeLists.txt +++ b/py/pykms/CMakeLists.txt @@ -1,7 +1,7 @@ include_directories(${LIBDRM_INCLUDE_DIRS}) link_directories(${LIBDRM_LIBRARY_DIRS}) -pkg_check_modules(PYTHON python3 REQUIRED) +pkg_search_module(PYTHON REQUIRED ${KMSXX_PYTHON_VERSION}) include_directories(${PYTHON_INCLUDE_DIRS}) if (NOT ${U_CMAKE_BUILD_TYPE} MATCHES DEBUG) -- cgit v1.2.3