From 964c271adeddbec5ed7f5158d1562d96f9305f0f Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Tue, 28 Mar 2023 21:09:29 +0200 Subject: Fix Python version check --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index ab654706..f2848287 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,7 +71,7 @@ if (USE_PYTHON) find_package(Python COMPONENTS Interpreter Development) - if (PYTHON_FOUND AND ${Python_VERSION} VERSION_LESS ${Required_Python_Version}) + if (PYTHON_FOUND AND ${Python_VERSION} VERSION_GREATER_EQUAL ${Required_Python_Version}) set(BOOST_PYTHON "python${Python_VERSION_MAJOR}${Python_VERSION_MINOR}") set(HAVE_BOOST_PYTHON 1) include_directories(SYSTEM ${Python_INCLUDE_DIRS}) -- cgit v1.2.3