summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-05-24 18:34:48 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-05-24 18:34:48 (GMT)
commit0f843584f32132969ea1c9f11970af1ea6adabc9 (patch)
treeb3f9eca4bbfface8c352f1a238246698572e0509
parent14a6bda1a248ae5a7926d8bf25ce3faa37c2df91 (diff)
parent5cf4ff6e1fefe964f19e5f83e7ef68ca64bd2e05 (diff)
downloadCMake-0f843584f32132969ea1c9f11970af1ea6adabc9.zip
CMake-0f843584f32132969ea1c9f11970af1ea6adabc9.tar.gz
CMake-0f843584f32132969ea1c9f11970af1ea6adabc9.tar.bz2
Merge topic 'doc-output_required_files'
5cf4ff6 Document status of output_required_files command (#12214)
-rw-r--r--Source/cmOutputRequiredFilesCommand.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/cmOutputRequiredFilesCommand.h b/Source/cmOutputRequiredFilesCommand.h
index 0da7724..6038472 100644
--- a/Source/cmOutputRequiredFilesCommand.h
+++ b/Source/cmOutputRequiredFilesCommand.h
@@ -47,8 +47,7 @@ public:
*/
virtual const char* GetTerseDocumentation()
{
- return
- "Output a list of required source files for a specified source file.";
+ return "Deprecated. Approximate C preprocessor dependency scanning.";
}
/**
@@ -57,12 +56,22 @@ public:
virtual const char* GetFullDocumentation()
{
return
+ "This command exists only because ancient CMake versions provided it. "
+ "CMake handles preprocessor dependency scanning automatically using a "
+ "more advanced scanner.\n"
" output_required_files(srcfile outputfile)\n"
"Outputs a list of all the source files that are required by the "
"specified srcfile. This list is written into outputfile. This is "
"similar to writing out the dependencies for srcfile except that it "
"jumps from .h files into .cxx, .c and .cpp files if possible.";
}
+
+ /** This command is kept for compatibility with older CMake versions. */
+ virtual bool IsDiscouraged()
+ {
+ return true;
+ }
+
cmTypeMacro(cmOutputRequiredFilesCommand, cmCommand);
void ListDependencies(cmDependInformation const *info,