[CMake] Parellel Visual Studio builds of targets in the same CMakeLists.txt sometimes fail
Todd Greer
TGreer at affinegy.com
Mon Nov 5 18:49:10 EST 2012
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
More information about the CMake
mailing list