[CMake] Parellel Visual Studio builds of targets in the same CMakeLists.txt sometimes fail

Todd Greer TGreer at affinegy.com
Mon Nov 5 17:48:27 EST 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121105/487268cb/attachment-0001.htm>


More information about the CMake mailing list