]> git.lyx.org Git - features.git/commitdiff
Cmake build: Copy & paste error
authorKornel Benko <kornel@lyx.org>
Fri, 29 Nov 2019 13:47:27 +0000 (14:47 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:46 +0000 (15:48 +0200)
CMakeLists.txt

index 12b81a6d6376e5049d7cde97c20ad346ef0cf3dc..ca9895dadd24267ef2fe1c0377005204d0502b04 100644 (file)
@@ -806,7 +806,7 @@ else()
   if(NOT Python3_Interpreter_FOUND)
     unset(PYTHON_EXECUTABLE CACHE)
     find_package(Python2 2.0 REQUIRED)
-    if(NOT PYTHON_VERSION_STRING VERSION_LESS 2.8)
+    if(NOT Python2_VERSION VERSION_LESS 2.8)
       message(FATAL_ERROR "Python interpreter found, but is not suitable")
     endif()
     set(LYX_PYTHON_EXECUTABLE ${Python2_EXECUTABLE} CACHE FILEPATH "Python to be used by LyX")