<div dir="ltr">Yes I figured this out, but then I have to fix up the runtime function that finds the file.  Because in VS configurations it will be in dir(Argv0).parent() and in non-vs configurations it will be in dir(Argv0).  </div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 6, 2018 at 2:29 PM Chris Bieneman <<a href="mailto:chris.bieneman@me.com">chris.bieneman@me.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">The `configure_file` command shouldn't have the `${CMAKE_CFG_INTDIR}` in the middle. configure_file is done at config time, not build time, and it only runs once, so you don't want it to be per-configuration.<div><br></div><div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div>-Chris</div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><br><div><br><blockquote type="cite"><div>On Sep 6, 2018, at 2:28 PM, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>> wrote:</div><br class="m_1609551248064176371Apple-interchange-newline"><div><div dir="ltr">Let me look at it.  I have VS installed so I can repro it.  Gimme about 30 minutes and I'll update with a path forward.</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 6, 2018 at 2:20 PM Matthew Voss via Phabricator <<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ormris added a comment.<br>
<br>
This is causing issues for our Visual Studio builds. CMake doesn't know which configuration will be used at build time, so we end up with "llvm.srcdir.txt" placed in directory called "$(Configuration)". Any thoughts on a fix?<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D51561" rel="noreferrer" target="_blank">https://reviews.llvm.org/D51561</a><br>
<br>
<br>
<br>
</blockquote></div>
</div></blockquote></div><br></div></div></blockquote></div>