[Piglit] [PATCH 42/44] CMake: Enable python 3.x for building
baker.dylan.c at gmail.com
baker.dylan.c at gmail.com
Wed Jan 27 16:06:50 PST 2016
From: Dylan Baker <baker.dylan.c at gmail.com>
The generators have supported 3.x for some time, this now makes 3.x the
default, and falls back to 2.7
This has been tested with 3.5 and 2.7
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
CMakeLists.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 493cece..b822934 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -201,7 +201,9 @@ IF(PIGLIT_BUILD_GLX_TESTS)
pkg_check_modules(GLPROTO REQUIRED glproto)
ENDIF()
-find_package(PythonInterp 2.7 REQUIRED)
+set(Python_ADDITIONAL_VERSIONS
+ 3.5 3.4 3.3 2.7)
+find_package(PythonInterp REQUIRED)
find_package(PythonNumpy 1.6.2 REQUIRED)
find_package(PythonMako 0.8.0 REQUIRED)
find_package(PythonSix 1.4.0 REQUIRED)
--
2.7.0
More information about the Piglit
mailing list