summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJohnathan Corgan2011-12-14 17:00:46 -0800
committerJohnathan Corgan2011-12-14 17:00:46 -0800
commit13e3ee121c65c4db1b9e219284ff8ab7775822b6 (patch)
tree2aca13668ae28803a0b167ac23a3b754b4137ea7 /cmake
parent7ad9000642693deb1e18507fb9b0951c3849d17d (diff)
parent214764eb597a8914c2935286f92b7d3e59ee0610 (diff)
downloadgnuradio-13e3ee121c65c4db1b9e219284ff8ab7775822b6.tar.gz
gnuradio-13e3ee121c65c4db1b9e219284ff8ab7775822b6.tar.bz2
gnuradio-13e3ee121c65c4db1b9e219284ff8ab7775822b6.zip
Merge branch 'maint'
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/GrPython.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/Modules/GrPython.cmake b/cmake/Modules/GrPython.cmake
index efdddf371..e8e07b244 100644
--- a/cmake/Modules/GrPython.cmake
+++ b/cmake/Modules/GrPython.cmake
@@ -77,7 +77,9 @@ macro(GR_PYTHON_CHECK_MODULE desc mod cmd have)
COMMAND ${PYTHON_EXECUTABLE} -c "
#########################################
try: import ${mod}
-except: exit(-1)
+except:
+ try: ${mod}
+ except: exit(-1)
try: assert ${cmd}
except: exit(-1)
#########################################"