diff options
author | Alejandro Hernandez <ajhernandez@ti.com> | 2017-02-03 10:11:58 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-02-06 12:59:32 +0200 |
commit | 643d678146f0e292ed211e9fe214c145e697d2d4 (patch) | |
tree | cd9c12a54ad64f5b652bb78840dd9e5b8073adf5 /py/pykms | |
parent | 0286945fdda0dee8881c0e00ef8942ac3f7999c9 (diff) |
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 <ajhernandez@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'py/pykms')
-rw-r--r-- | py/pykms/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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) |