From 6be01747e08f5446f4c69b5a3e41f33cc372630e Mon Sep 17 00:00:00 2001 From: Josh Morman <jmorman@perspectalabs.com> Date: Tue, 2 Jul 2019 11:54:35 -0400 Subject: modtool: c++ qa tests cmake error C++ QA tests were not being added to the correct spot in the lib/CMakeLists Fixes #2559 --- gr-utils/python/modtool/core/add.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gr-utils/python') diff --git a/gr-utils/python/modtool/core/add.py b/gr-utils/python/modtool/core/add.py index 5396cead27..a011b594f3 100644 --- a/gr-utils/python/modtool/core/add.py +++ b/gr-utils/python/modtool/core/add.py @@ -161,8 +161,8 @@ class ModToolAdd(ModTool): return try: append_re_line_sequence(self._file['cmlib'], - '\$\{CMAKE_CURRENT_SOURCE_DIR\}/qa_%s.cc.*\n' % self.info['modname'], - ' ${CMAKE_CURRENT_SOURCE_DIR}/qa_%s.cc' % self.info['blockname']) + 'list\(APPEND test_{}_sources.*\n'.format(self.info['modname']), + 'qa_{}.cc'.format(self.info['blockname'])) append_re_line_sequence(self._file['qalib'], '#include.*\n', '#include "{}"'.format(fname_qa_h)) -- cgit v1.2.3