diff options
author | Johnathan Corgan | 2012-04-23 11:00:03 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-04-23 11:00:03 -0700 |
commit | c02fe1aa1166c5b4864ebdfac76cc35c56c7a9e9 (patch) | |
tree | 0f2367406840970f8e09dac0e8d410a7479263c9 /cmake/Modules | |
parent | 62eb0520ba866cc2eb7a4aa3e0ba0cdd325b6c0a (diff) | |
parent | 70392d37c572ee94ff7a72e35e02f11404c532fd (diff) | |
download | gnuradio-c02fe1aa1166c5b4864ebdfac76cc35c56c7a9e9.tar.gz gnuradio-c02fe1aa1166c5b4864ebdfac76cc35c56c7a9e9.tar.bz2 gnuradio-c02fe1aa1166c5b4864ebdfac76cc35c56c7a9e9.zip |
Merge branch 'maint'
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/GrPython.cmake | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cmake/Modules/GrPython.cmake b/cmake/Modules/GrPython.cmake index eff9cbcdc..14f2b29cd 100644 --- a/cmake/Modules/GrPython.cmake +++ b/cmake/Modules/GrPython.cmake @@ -76,12 +76,11 @@ macro(GR_PYTHON_CHECK_MODULE desc mod cmd have) execute_process( COMMAND ${PYTHON_EXECUTABLE} -c " ######################################### -try: import ${mod} -except: - try: ${mod} - except: exit(-1) -try: assert ${cmd} -except: exit(-1) +try: + import ${mod} + assert ${cmd} +except ImportError, AssertionError: exit(-1) +except: pass #########################################" RESULT_VARIABLE ${have} ) |