View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008815CMakeDocumentationpublic2009-03-30 01:462009-03-30 08:28
ReporterJames Bigler 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0008815: add_custom_command needs documention to state scope of command
DescriptionAccording to this thread, the OUTPUTS of add_custom_command can only be referenced as a build rule in the directory they were declared in.
http://www.cmake.org/pipermail/cmake/2009-February/027323.html [^]

This prevents calling add_custom_command in a subdirectory, using the OUTPUTS in a target in the parent directory, and having the add_custom_command being run as a dependency for that target.

This is somewhat unintuitive and should be documented, since add_custom_command could be seen as behaving as a target does and have global scope.

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0015847)
Brad King (manager)
2009-03-30 08:28

ENH: Document scope of add_custom_command outputs
/cvsroot/CMake/CMake/Source/cmAddCustomCommandCommand.h,v <-- Source/cmAddCustomCommandCommand.h
new revision: 1.36; previous revision: 1.35
/cvsroot/CMake/CMake/Source/cmAddCustomTargetCommand.h,v <-- Source/cmAddCustomTargetCommand.h
new revision: 1.24; previous revision: 1.23

 Issue History
Date Modified Username Field Change
2009-03-30 01:46 James Bigler New Issue
2009-03-30 08:01 Brad King Status new => assigned
2009-03-30 08:01 Brad King Assigned To => Brad King
2009-03-30 08:28 Brad King Note Added: 0015847
2009-03-30 08:28 Brad King Status assigned => closed
2009-03-30 08:28 Brad King Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team