diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-03-29 14:53:10 -0700 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-03-30 09:05:18 -0400 |
commit | 557659bdc03b486f637e41c70a4a86a6f0a5d7ff (patch) | |
tree | 08f430ae9078911ffc2e3b2466e49da37c8d7c10 /cmake/Modules | |
parent | d4626dc2d36b79ee198e13ad6b3b643d7ef0dc1e (diff) |
cmake: GrPython: Auto-import LooseVersion into module check macro
GR_PYTHON_CHECK_MODULE() often needs to check versions of modulues, so
we auto-import LooseVersion to maket that easier.
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/GrPython.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/Modules/GrPython.cmake b/cmake/Modules/GrPython.cmake index acf84d625b..a872618b07 100644 --- a/cmake/Modules/GrPython.cmake +++ b/cmake/Modules/GrPython.cmake @@ -78,6 +78,7 @@ macro(GR_PYTHON_CHECK_MODULE desc mod cmd have) GR_PYTHON_CHECK_MODULE_RAW( "${desc}" " ######################################### +from distutils.version import LooseVersion try: import ${mod} assert ${cmd} |