From 9449236cf7bf48f40b696edce68d81410d713489 Mon Sep 17 00:00:00 2001 From: Martin Braun <martin.braun@ettus.com> Date: Sun, 7 Oct 2018 13:30:35 -0700 Subject: modtool: OOTs use Boost.UTF, CMake 3.8-Aware - This is the same change that happened for the GNU Radio core - New OOTs will now have Boost.UTF-based unit tests - modtool will be able to handle both CppUnit-based OOTs as well as Boost.UTF-based ones; this change is backward-compatible --- gr-utils/python/modtool/modtool_base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gr-utils/python/modtool/modtool_base.py') diff --git a/gr-utils/python/modtool/modtool_base.py b/gr-utils/python/modtool/modtool_base.py index 4263e498f7..41d83ccafb 100644 --- a/gr-utils/python/modtool/modtool_base.py +++ b/gr-utils/python/modtool/modtool_base.py @@ -1,5 +1,5 @@ # -# Copyright 2013 Free Software Foundation, Inc. +# Copyright 2013,2018 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -105,6 +105,8 @@ class ModTool(object): os.path.isdir(os.path.join('include', 'gnuradio', self._info['modname'])) ): self._info['version'] = '37' + if not os.path.isfile(os.path.join('cmake', 'Modules', 'FindCppUnit.cmake')): + self._info['version'] = '38' if options.skip_lib or not self._has_subdirs['lib']: self._skip_subdirs['lib'] = True if options.skip_python or not self._has_subdirs['python']: @@ -133,7 +135,7 @@ class ModTool(object): self._file['cmpython'] = os.path.join(self._info['pydir'], 'CMakeLists.txt') if self._info['is_component']: self._info['includedir'] = os.path.join('include', 'gnuradio', self._info['modname']) - elif self._info['version'] == '37': + elif self._info['version'] in ('37', '38'): self._info['includedir'] = os.path.join('include', self._info['modname']) else: self._info['includedir'] = 'include' -- cgit v1.2.3