I have a project that occasionally says it cannot access it&#39;s .ilk file; but rerunning the build and it works usuaully... but it&#39;s only that one project that has the problem, and an incremental link file is only for that project<br>
<br><div class="gmail_quote">On Mon, Nov 5, 2012 at 3:49 PM, Todd Greer <span dir="ltr">&lt;<a href="mailto:TGreer@affinegy.com" target="_blank">TGreer@affinegy.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;ll ask my team about what circumstances it&#39;s been hit in, but I would expect a permission error to happen every time, whereas this failure is intermittent.<br>
<div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a> [mailto:<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>] On Behalf Of Robert Dailey<br>
<br>
Are you on Windows Vista or higher? If so, have you tried running Visual Studio as Administrator and doing a build? I don&#39;t have this problem, but my first thought was that maybe you are having some permissions errors. I also have several targets that build in parallel in the same directory.<br>

<br>
On Mon, Nov 5, 2012 at 4:48 PM, Todd Greer &lt;<a href="mailto:TGreer@affinegy.com">TGreer@affinegy.com</a>&gt; wrote:<br>
&gt; I have several libraries in my build that are declared in the same<br>
&gt; CMakeLists.txt (by add_library). Unfortunately, the Visual Studio<br>
&gt; generator (2010, but I don&#39;t think it matters) puts<br>
&gt; &quot;CMakeFiles\generate.stamp&quot; in the output directory for that<br>
&gt; CMakeLists.txt. Unless I&#39;m mistaken, when being built in parallel,<br>
&gt; these targets sometimes seem to collide, yielding an error like this:<br>
&gt;<br>
&gt; CUSTOMBUILD : CMake error : Cannot restore timestamp<br>
&gt; &lt;outdir&gt;\CMakeFiles\generate.stamp<br>
&gt;<br>
&gt; Other than splitting each target into its own CMakeLists.txt file in<br>
&gt; its own directory, can anyone suggest a good workaround? I&#39;m using<br>
&gt; CMake 2.8.7, and it doesn&#39;t look like the relevant code has been changed since then.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thank you,<br>
&gt;<br>
&gt; Todd<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>