Cmake build: Copy & paste error

This commit is contained in:
Kornel Benko 2019-11-29 14:47:27 +01:00
parent 350a9daf56
commit 8181c88c28

View 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")