summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-03-28 21:09:29 +0200
committerMartin Michlmayr <tbm@cyrius.com>2023-03-30 15:18:24 +0800
commit964c271adeddbec5ed7f5158d1562d96f9305f0f (patch)
tree20bbc4d536d4e69427ae6b51f4cf3b268ceed7e6 /CMakeLists.txt
parent681bf11c1b631d8599ce47089aeee9c3b91d9e36 (diff)
downloadfork-ledger-964c271adeddbec5ed7f5158d1562d96f9305f0f.tar.gz
fork-ledger-964c271adeddbec5ed7f5158d1562d96f9305f0f.tar.bz2
fork-ledger-964c271adeddbec5ed7f5158d1562d96f9305f0f.zip
Fix Python version check
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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})