diff options
author | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-01-06 13:01:32 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-01-14 14:36:39 -0600 |
commit | 6d746fd2963a8461cb38efb4189388f96bf1f93e (patch) | |
tree | 683bb8f5d724c264e98ca2aa7639153feac7e534 /host/python | |
parent | 88d284816e8e91dda17b7a3edcbdfeec89de4843 (diff) | |
download | uhd-6d746fd2963a8461cb38efb4189388f96bf1f93e.tar.gz uhd-6d746fd2963a8461cb38efb4189388f96bf1f93e.tar.bz2 uhd-6d746fd2963a8461cb38efb4189388f96bf1f93e.zip |
cmake: Replace distutils with CMake for version checks
This commit replaces the use of distutils.version.LooseVersion() with
CMake's version comparison operator, which implements relational version
string checking in the same manner (i.e., comparing numeric components
of a version string numerically).
Diffstat (limited to 'host/python')
-rw-r--r-- | host/python/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host/python/CMakeLists.txt b/host/python/CMakeLists.txt index 212bd9e46..a7f0352af 100644 --- a/host/python/CMakeLists.txt +++ b/host/python/CMakeLists.txt @@ -10,7 +10,8 @@ PYTHON_CHECK_MODULE( "virtualenv" - "sys" "hasattr(sys, 'real_prefix')" + "sys" + "hasattr(sys, 'real_prefix')" HAVE_PYTHON_VIRTUALENV ) |