aboutsummaryrefslogtreecommitdiffstats
path: root/host/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'host/CMakeLists.txt')
-rw-r--r--host/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
index b741881d0..fcf9feed3 100644
--- a/host/CMakeLists.txt
+++ b/host/CMakeLists.txt
@@ -311,19 +311,19 @@ include(UHDPython)
PYTHON_CHECK_MODULE(
"Python version ${PYTHON_MIN_VERSION} or greater"
- "platform" "platform.python_version() >= '${PYTHON_MIN_VERSION}'"
+ "platform" "LooseVersion(platform.python_version()) >= LooseVersion('${PYTHON_MIN_VERSION}')"
HAVE_PYTHON_PLAT_MIN_VERSION
)
PYTHON_CHECK_MODULE(
"Mako templates ${PY_MAKO_MIN_VERSION} or greater"
- "mako" "mako.__version__ >= '${PY_MAKO_MIN_VERSION}'"
+ "mako" "LooseVersion(mako.__version__) >= LooseVersion('${PY_MAKO_MIN_VERSION}')"
HAVE_PYTHON_MODULE_MAKO
)
PYTHON_CHECK_MODULE(
"requests ${PY_REQUESTS_MIN_VERSION} or greater"
- "requests" "requests.__version__ >= '${PY_REQUESTS_MIN_VERSION}'"
+ "requests" "LooseVersion(requests.__version__) >= LooseVersion('${PY_REQUESTS_MIN_VERSION}')"
HAVE_PYTHON_MODULE_REQUESTS
)