From 25b01217d191a419ff686bd9c59a11f4a3b7437d Mon Sep 17 00:00:00 2001
From: Josh Morman <jmorman@perspectalabs.com>
Date: Wed, 5 Jun 2019 16:26:52 -0400
Subject: modtool: add 3.8 version for info command

Code was there to give the correct printout, just in another place
Copy the logic for finding the post-3.8 version information
to the code that is executed by the gr_modtool info command

fixes #2403
---
 gr-utils/python/modtool/core/info.py | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'gr-utils/python')

diff --git a/gr-utils/python/modtool/core/info.py b/gr-utils/python/modtool/core/info.py
index 2a483d18c4..1b4d70f517 100644
--- a/gr-utils/python/modtool/core/info.py
+++ b/gr-utils/python/modtool/core/info.py
@@ -57,6 +57,8 @@ class ModToolInfo(ModTool):
                 os.path.isdir(os.path.join('include', 'gnuradio', mod_info['modname']))
                 ):
             self.info['version'] = '37'
+        if not os.path.isfile(os.path.join('cmake', 'Modules', 'FindCppUnit.cmake')):
+            self.info['version'] = '38'
         mod_info['version'] = self.info['version']
         if 'is_component' in list(self.info.keys()) and self.info['is_component']:
             mod_info['is_component'] = True
-- 
cgit v1.2.3