MantisBT - CMake
View Issue Details
0012214CMakeCMakepublic2011-05-23 02:382011-06-18 07:42
Mohamad Sindi 
Brad King 
normalminoralways
closedfixed 
X86LinuxRedHat EL 5
CMake 2.8.4 
CMake 2.8.5CMake 2.8.5 
0012214: The "output_required_files" command should be documented as deprecated
According 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
No tags attached.
Issue History
2011-05-23 02:38Mohamad SindiNew Issue
2011-05-23 13:23Brad KingAssigned To => Brad King
2011-05-23 13:23Brad KingStatusnew => assigned
2011-05-23 13:25Brad KingNote Added: 0026573
2011-05-23 13:25Brad KingStatusassigned => closed
2011-05-23 13:25Brad KingResolutionopen => fixed
2011-05-23 13:25Brad KingSummaryThe "output_required_files" command generates empty dependency files => The "output_required_files" command should be documented as deprecated
2011-06-18 07:42David ColeFixed in Version => CMake 2.8.5
2011-06-18 07:42David ColeTarget Version => CMake 2.8.5

Notes
(0026573)
Brad King   
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 [^]