aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Morman <jmorman@perspectalabs.com>2019-07-02 11:54:35 -0400
committermormj <34754695+mormj@users.noreply.github.com>2019-12-04 12:10:33 -0500
commit6be01747e08f5446f4c69b5a3e41f33cc372630e (patch)
tree663f461ebdcb90ace60c499935de7a5f8fca7725
parentUse C++11 ranged for and ranged insert instead of manual loops (diff)
downloadgnuradio-6be01747e08f5446f4c69b5a3e41f33cc372630e.tar.xz
gnuradio-6be01747e08f5446f4c69b5a3e41f33cc372630e.zip
modtool: c++ qa tests cmake error
C++ QA tests were not being added to the correct spot in the lib/CMakeLists Fixes #2559
-rw-r--r--gr-utils/python/modtool/core/add.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-utils/python/modtool/core/add.py b/gr-utils/python/modtool/core/add.py
index 5396cead2..a011b594f 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))