Skip to content

Commit

Permalink
fix to build swtv4 after fixing submodule support
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs committed Dec 20, 2024
1 parent fb5bee2 commit 26ccec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymake/utils/_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ def _get_f_nodelist(srcfiles):
modulename = linelist[1].split(",")[0].upper()
if modulename not in modulelist:
modulelist.append(modulename)
if "SUBMODULE" in linelist[0].upper():
modulename = re.findall(submodule_pattern, linelist[0])[0].upper()
if line.strip().upper().startswith("SUBMODULE"):
modulename = re.findall(submodule_pattern, line)[0].upper()
if modulename not in modulelist:
modulelist.append(modulename)

Expand Down

0 comments on commit 26ccec2

Please sign in to comment.