[CMake] Parellel Visual Studio builds of targets in the same CMakeLists.txt sometimes fail
J Decker
d3ck0r at gmail.com
Mon Nov 5 19:15:00 EST 2012
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
On Mon, Nov 5, 2012 at 3:49 PM, Todd Greer <TGreer at affinegy.com> wrote:
> 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.
>
> -----Original Message-----
> From: rcdailey at gmail.com [mailto:rcdailey at gmail.com] On Behalf Of Robert
> Dailey
>
> 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.
>
> On Mon, Nov 5, 2012 at 4:48 PM, Todd Greer <TGreer at affinegy.com> wrote:
> > I have several libraries in my build that are declared in the same
> > CMakeLists.txt (by add_library). Unfortunately, the Visual Studio
> > generator (2010, but I don't think it matters) puts
> > "CMakeFiles\generate.stamp" in the output directory for that
> > CMakeLists.txt. Unless I'm mistaken, when being built in parallel,
> > these targets sometimes seem to collide, yielding an error like this:
> >
> > CUSTOMBUILD : CMake error : Cannot restore timestamp
> > <outdir>\CMakeFiles\generate.stamp
> >
> > Other than splitting each target into its own CMakeLists.txt file in
> > its own directory, can anyone suggest a good workaround? I'm using
> > CMake 2.8.7, and it doesn't look like the relevant code has been changed
> since then.
> >
> >
> >
> > Thank you,
> >
> > Todd
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121105/ac231bc9/attachment.htm>
More information about the CMake
mailing list