View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013639CMakeCMakepublic2012-11-01 16:522013-12-02 08:51
ReporterTodd Greer 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityrandom
StatusclosedResolutionfixed 
PlatformVisual Studio 2010OSWindowsOS VersionWindows 7
Product VersionCMake 2.8.7 
Target VersionCMake 2.8.11Fixed in VersionCMake 2.8.11 
Summary0013639: Parellel builds of targets in the same CMakeLists.txt sometimes fail
DescriptionI have several libraries in my build that are all 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. When being build in parallel, these targets sometimes seem to collide, yielding an error like this:

CUSTOMBUILD : CMake error : Cannot restore timestamp <outdir>\CMakeFiles\generate.stamp

AFAICT, there is no documented prohibition on pointing multiple projects' outputs to the same directory. Either this should be fixed, or the restriction should be documented.
Steps To ReproduceCreate a CMakeLists.txt with multiple add_library commands. Build with VS2010, with parallel building enabled, on a multicore computer. Observe the failure listed in the description.
Additional InformationThere would be some work involved in cutting our build config down to something I could submit; please let me know if that is required.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0033616)
Brad King (manager)
2013-07-25 16:14

This was fixed in CMake 2.8.11 by these commits:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2dc17f88 [^]
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=59b568e5 [^]
(0034659)
Robert Maynard (manager)
2013-12-02 08:51

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-11-01 16:52 Todd Greer New Issue
2013-07-25 16:14 Brad King Note Added: 0033616
2013-07-25 16:14 Brad King Assigned To => Brad King
2013-07-25 16:14 Brad King Status new => resolved
2013-07-25 16:14 Brad King Resolution open => fixed
2013-07-25 16:14 Brad King Fixed in Version => CMake 2.8.11
2013-07-25 16:14 Brad King Target Version => CMake 2.8.11
2013-12-02 08:51 Robert Maynard Note Added: 0034659
2013-12-02 08:51 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team