From a0ceeddc497188a8cce7e45ba5c7473636073247 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 22 Sep 2016 16:00:31 -0700 Subject: cmake: Check for python requests, warn if not found (does not fail though) --- host/CMakeLists.txt | 8 +++++++- host/utils/CMakeLists.txt | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'host') 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 -- cgit v1.2.3