14 lines
358 B
Diff
14 lines
358 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -7,10 +7,7 @@ INCLUDE(version)
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
|
|
|
|
-FIND_PACKAGE(PythonInterp 2 REQUIRED)
|
|
-IF (NOT PYTHON_VERSION_MAJOR EQUAL 2)
|
|
- MESSAGE(FATAL_ERROR "Python 2 is required.")
|
|
-ENDIF()
|
|
+FIND_PACKAGE(PythonInterp 3 REQUIRED)
|
|
|
|
FIND_PROGRAM(CTYPESGEN_FOUND ctypesgen.py)
|
|
|