summaryrefslogtreecommitdiff
path: root/gr-utils/python
diff options
context:
space:
mode:
authorNick Østergaard <oe.nick@gmail.com>2019-07-09 22:45:34 +0200
committerAndrej Rode <mail@andrejro.de>2019-07-11 20:40:36 +0200
commitcff05c36dfc3908c3933773ac789959050fae45e (patch)
tree9fda76a7c9dd2f621e10d3f22d2ad6f48093000e /gr-utils/python
parente8cada3fb30580ff6d5cc892c5e576ad4655646c (diff)
Check seperately for click-plugins missing
It was hard to determine from the cmake output what python module was missing. Let the error output be more exact.
Diffstat (limited to 'gr-utils/python')
-rw-r--r--gr-utils/python/modtool/CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/gr-utils/python/modtool/CMakeLists.txt b/gr-utils/python/modtool/CMakeLists.txt
index 70fdabedac..bcadc56107 100644
--- a/gr-utils/python/modtool/CMakeLists.txt
+++ b/gr-utils/python/modtool/CMakeLists.txt
@@ -21,14 +21,23 @@ include(GrPython)
GR_PYTHON_CHECK_MODULE_RAW(
"click"
- "import click; import click_plugins"
+ "import click"
CLICK_FOUND
)
+GR_PYTHON_CHECK_MODULE_RAW(
+ "click-plugins"
+ "import click_plugins"
+ CLICK_PLUGINS_FOUND
+ )
+
if(NOT CMAKE_CROSSCOMPILING)
if(NOT CLICK_FOUND)
message(FATAL_ERROR "Python module click is required for gr-modtool")
endif()
+ if(NOT CLICK_PLUGINS_FOUND)
+ message(FATAL_ERROR "Python module click-plugins is required for gr-modtool")
+ endif()
endif()
GR_PYTHON_INSTALL(FILES