diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-09-22 16:00:31 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-09-22 16:00:31 -0700 |
commit | a0ceeddc497188a8cce7e45ba5c7473636073247 (patch) | |
tree | 76e72184788dbd3bc0cc95d4bb9c4cdddb0b369f /host | |
parent | ce6be04bc75f5dda2943fd438c055c57b70a11a6 (diff) | |
download | uhd-a0ceeddc497188a8cce7e45ba5c7473636073247.tar.gz uhd-a0ceeddc497188a8cce7e45ba5c7473636073247.tar.bz2 uhd-a0ceeddc497188a8cce7e45ba5c7473636073247.zip |
cmake: Check for python requests, warn if not found (does not fail though)
Diffstat (limited to 'host')
-rw-r--r-- | host/CMakeLists.txt | 8 | ||||
-rw-r--r-- | host/utils/CMakeLists.txt | 3 |
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 |