<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 2, 2013 at 9:19 AM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">...<br>
a side effect?  Is there another way to do this in CMake's Ninja gen?<br></blockquote><div><br></div><div style>Yes I have found a way we can do this in CMake's Ninja generator.</div><div style>The Ninja generator needs to be taught to create phony ninja targets for</div>

<div style>any file that exists in the build directory and which is a dependency of</div><div style>a custom command target ( this might need to be expanded to a dependency of any</div><div style>target in the future).  Ninja phony targets can also be used to create targets for files</div>

<div style>which may not exist at build time otherwise an error will occur if the file does not exist.</div><div style><br></div><div style>I hope to have a branch by the end of this week that will update the Ninja</div>
<div style>
generator with this fix.</div></div><br clear="all"><div><br></div>-- <br>Robert Maynard
</div></div>