View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005799CMakeCMakepublic2007-09-28 15:062011-01-28 10:48
ReporterDaniel Nelson 
Assigned ToDavid Cole 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in VersionCMake-2-6 
Summary0005799: If you use ADD_SUBDIRECTORY with EXCLUDE_FROM_ALL then progress percent will not be calculated properly.
DescriptionIf you use ADD_SUBDIRECTORY with the EXCLUDE_FROM_ALL argument, every child target also has to be marked EXCLUDE_FROM_ALL or the progress percentage will be calculated incorrectly.

Here is an example:
.
|-- CMakeLists.txt
|-- main.cpp
`-- optional
    |-- CMakeLists.txt
    `-- optional.cpp

./CMakeLists.txt
PROJECT(progress)
ADD_SUBDIRECTORY(optional blah EXCLUDE_FROM_ALL)
ADD_EXECUTABLE(main main.cpp)

./optional/CMakeLists.txt
ADD_EXECUTABLE(optional optional.cpp)

If you type make, it will only count to 50% before completing. But if you add the EXCLUDE_FROM_ALL argument to the target "optional" then it will count to 100%.


TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0013882)
Daniel Nelson (reporter)
2008-10-15 01:54

This bug no longer exists in cmake 2.6.1.
(0023954)
David Cole (manager)
2010-12-14 11:15

Fixed already, no present change required, as documented in previously attached notes.
(0025126)
David Cole (manager)
2011-01-28 10:48

Re-closing, as later re-assignment inadvertently re-opened this issue. Really, it's closed. Fixed. Done. Later, tater.

 Issue History
Date Modified Username Field Change
2007-09-28 15:06 Daniel Nelson New Issue
2007-10-12 09:46 Bill Hoffman Status new => assigned
2007-10-12 09:46 Bill Hoffman Assigned To => Bill Hoffman
2007-12-18 10:24 Bill Hoffman Assigned To Bill Hoffman => Ken Martin
2008-10-15 01:54 Daniel Nelson Note Added: 0013882
2010-12-14 11:15 David Cole Note Added: 0023954
2010-12-14 11:15 David Cole Status assigned => closed
2010-12-14 11:15 David Cole Resolution open => fixed
2010-12-14 11:15 David Cole Fixed in Version => CMake-2-6
2010-12-14 11:52 David Cole Assigned To Ken Martin => David Cole
2010-12-14 11:52 David Cole Status closed => assigned
2011-01-28 10:48 David Cole Note Added: 0025126
2011-01-28 10:48 David Cole Status assigned => closed


Copyright © 2000 - 2018 MantisBT Team