Skip to content

Commit f41deb6

Browse files
authored
Merge pull request #451 from yarda/python-detection-fix
Fix python version detection
2 parents cf44693 + 569a46d commit f41deb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ endif()
157157

158158
# Python
159159
include(VolkPython) #sets PYTHON_EXECUTABLE and PYTHON_DASH_B
160-
VOLK_PYTHON_CHECK_MODULE("python >= 3.4" sys "sys.version.split()[0] >= '3.4'" PYTHON_MIN_VER_FOUND)
160+
VOLK_PYTHON_CHECK_MODULE("python >= 3.4" sys "sys.version_info >= (3, 4)" PYTHON_MIN_VER_FOUND)
161161
VOLK_PYTHON_CHECK_MODULE("mako >= 0.4.2" mako "mako.__version__ >= '0.4.2'" MAKO_FOUND)
162162

163163
if(NOT PYTHON_MIN_VER_FOUND)

0 commit comments

Comments
 (0)