View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012214CMakeCMakepublic2011-05-23 02:382011-06-18 07:42
ReporterMohamad Sindi 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformX86OSLinuxOS VersionRedHat EL 5
Product VersionCMake 2.8.4 
Target VersionCMake 2.8.5Fixed in VersionCMake 2.8.5 
Summary0012214: The "output_required_files" command should be documented as deprecated
DescriptionAccording to the "Mastering CMake" book 4th edition, the "output_required_files" command should take a source file and produce a list of all other source file it depends on. So far I tried it with Fortran source files and it didn't work, it basically creates an empty file which supposedly should contain a list of source file dependencies.

I found this post online as well which covers the same issue and apparently no solution from anyone so far:
http://www.cmake.org/pipermail/cmake/2009-September/031904.html [^]

Does the command actually work or it's something that the author's of the book are still planning to implement?

I would appreciate it if the authors of the book Bill Hoffman or Ken Martin can kindly comment on this and perhaps give us a simple example on how to get this working.

Thank you for your help.

Mohamad Sindi
Saudi Aramco
EXPEC Advanced Research Center
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0026573)
Brad King (manager)
2011-05-23 13:25

This is a documentation bug. The command works only for C source files and exists only for historical purposes. I've fixed the documentation:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5cf4ff6e [^]

 Issue History
Date Modified Username Field Change
2011-05-23 02:38 Mohamad Sindi New Issue
2011-05-23 13:23 Brad King Assigned To => Brad King
2011-05-23 13:23 Brad King Status new => assigned
2011-05-23 13:25 Brad King Note Added: 0026573
2011-05-23 13:25 Brad King Status assigned => closed
2011-05-23 13:25 Brad King Resolution open => fixed
2011-05-23 13:25 Brad King Summary The "output_required_files" command generates empty dependency files => The "output_required_files" command should be documented as deprecated
2011-06-18 07:42 David Cole Fixed in Version => CMake 2.8.5
2011-06-18 07:42 David Cole Target Version => CMake 2.8.5


Copyright © 2000 - 2018 MantisBT Team