build: fix windows compilation after clean

broken since 4730e0aaba
This commit is contained in:
Stefano Pigozzi
2015-07-17 09:41:09 +02:00
parent ebdbb4f24c
commit 7ba403002f
+5 -3
View File
@@ -418,9 +418,11 @@ def build(ctx):
ctx.path.find_node('osdep/mpv.rc'),
ctx.path.find_node(node))
ctx.add_manual_dependency(
ctx.path.find_node('osdep/mpv.rc'),
ctx.bldnode.find_node('version.h'))
version = ctx.bldnode.find_node('version.h')
if version:
ctx.add_manual_dependency(
ctx.path.find_node('osdep/mpv.rc'),
version)
if ctx.dependency_satisfied('cplayer') or ctx.dependency_satisfied('test'):
ctx(