modtool: update the cmake find module for volk mods
authorNathan West <nathan.west@nrl.navy.mil>
Mon, 13 Mar 2017 16:37:18 +0000 (12:37 -0400)
committerA. Maitland Bottoms <bottoms@debian.org>
Sun, 4 Feb 2018 18:12:21 +0000 (18:12 +0000)
Gbp-Pq: Name 0010-modtool-update-the-cmake-find-module-for-volk-mods.patch

python/volk_modtool/volk_modtool_generate.py

index 6040a7d9e53509ec199c8419a688283bbd53de6d..75232ed41761a64be6dd9c55594e5ff840a271d1 100644 (file)
@@ -113,6 +113,10 @@ class volk_modtool:
                     if name in need_ifdef_updates:
                         outstring = re.sub(self.volk_included, 'INCLUDED_VOLK_' + self.my_dict['name'].upper(), outstring)
                     newname = re.sub(self.volk, 'volk_' + self.my_dict['name'], name)
+                    if name == 'VolkConfig.cmake.in':
+                        outstring = re.sub("VOLK", 'VOLK_' + self.my_dict['name'].upper(), outstring)
+                        newname = "Volk%sConfig.cmake.in" % self.my_dict['name']
+
                     relpath = os.path.relpath(infile, self.my_dict['base'])
                     newrelpath = re.sub(self.volk, 'volk_' + self.my_dict['name'], relpath)
                     dest = os.path.join(self.my_dict['destination'], 'volk_' + self.my_dict['name'], os.path.dirname(newrelpath), newname)