aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/CMakeLists.txt8
-rw-r--r--host/utils/CMakeLists.txt3
2 files changed, 10 insertions, 1 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
index 4d1654c21..36705731d 100644
--- a/host/CMakeLists.txt
+++ b/host/CMakeLists.txt
@@ -299,11 +299,17 @@ PYTHON_CHECK_MODULE(
)
PYTHON_CHECK_MODULE(
- "Mako templates 0.4 or greater"
+ "Mako templates 0.4.2 or greater"
"mako" "mako.__version__ >= '0.4.2'"
HAVE_PYTHON_MODULE_MAKO
)
+PYTHON_CHECK_MODULE(
+ "requests 2.0 or greater"
+ "requests" "requests.__version__ >= '2.0'"
+ HAVE_PYTHON_MODULE_REQUESTS
+)
+
########################################################################
# Create Uninstall Target
########################################################################
diff --git a/host/utils/CMakeLists.txt b/host/utils/CMakeLists.txt
index 6f72c97bc..eb5a29df9 100644
--- a/host/utils/CMakeLists.txt
+++ b/host/utils/CMakeLists.txt
@@ -149,6 +149,9 @@ IF(LINUX)
COMPONENT utilities
)
ENDIF(LINUX)
+IF(NOT HAVE_PYTHON_MODULE_REQUESTS)
+ MESSAGE(WARNING "Module requests not found -- uhd_images_downloader.py will not work without it.")
+ENDIF(NOT HAVE_PYTHON_MODULE_REQUESTS)
IF(ENABLE_USRP2)
SET(burners