From c0d0a3a1ab52c9549c9a0fe3970fe16fdd5b25e6 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 18 Jan 2019 12:32:10 +0100 Subject: [PATCH] [cmake] Fix Python version check --- cmake/external_projects/tcltk.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/external_projects/tcltk.cmake b/cmake/external_projects/tcltk.cmake index b7f0ba85..b071e495 100644 --- a/cmake/external_projects/tcltk.cmake +++ b/cmake/external_projects/tcltk.cmake @@ -1,6 +1,6 @@ if(APPLE) # use system tcl/tk - if(${PYTHON_VERSION_STRING} STREQUAL "3.7") + if((${PYTHON_VERSION_STRING} VERSION_EQUAL "3.7") OR (${PYTHON_VERSION_STRING} VERSION_GREATER "3.7")) # fetch tcl/tk sources to match the one used in Python 3.7 ExternalProject_Add(project_tcl URL "https://prdownloads.sourceforge.net/tcl/tcl8.6.8-src.tar.gz"