I have a project that occasionally says it cannot access it's .ilk file; but rerunning the build and it works usuaully... but it'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"><<a href="mailto:TGreer@affinegy.com" target="_blank">TGreer@affinegy.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'll ask my team about what circumstances it'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'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 <<a href="mailto:TGreer@affinegy.com">TGreer@affinegy.com</a>> wrote:<br>
> I have several libraries in my build that are declared in the same<br>
> CMakeLists.txt (by add_library). Unfortunately, the Visual Studio<br>
> generator (2010, but I don't think it matters) puts<br>
> "CMakeFiles\generate.stamp" in the output directory for that<br>
> CMakeLists.txt. Unless I'm mistaken, when being built in parallel,<br>
> these targets sometimes seem to collide, yielding an error like this:<br>
><br>
> CUSTOMBUILD : CMake error : Cannot restore timestamp<br>
> <outdir>\CMakeFiles\generate.stamp<br>
><br>
> Other than splitting each target into its own CMakeLists.txt file in<br>
> its own directory, can anyone suggest a good workaround? I'm using<br>
> CMake 2.8.7, and it doesn't look like the relevant code has been changed since then.<br>
><br>
><br>
><br>
> Thank you,<br>
><br>
> 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>