Skip to content

Commit

Permalink
build: Fix dependency cycle (registry.hh <-> main.cc)
Browse files Browse the repository at this point in the history
  • Loading branch information
melver committed Oct 27, 2016
1 parent 8b05e9f commit 75bfa82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/models/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def gen_model_registry(target, source, env):
name = os.path.splitext(os.path.basename(path))[0]
f.write("REGISTER_MODEL(%s);\n" % name)

env.Command("registry.hh", Glob("*.cc"), gen_model_registry)
env.Command("registry.hh",
[f for f in Glob("*.cc") if not f.path.endswith('main.cc')],
gen_model_registry)

# vim: set ft=python :

0 comments on commit 75bfa82

Please sign in to comment.