summaryrefslogtreecommitdiffstats
path: root/Source/cmMakeDirectoryCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-31 17:20:12 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-31 17:20:12 (GMT)
commitf12742d6cdffd62378a4bbf8eeff0c552d2d9093 (patch)
tree47d6106c36cff7c570473b9cf41ed53a2cbbf443 /Source/cmMakeDirectoryCommand.h
parent2b33498c03877157faaacaa06f1a5e865b7d8537 (diff)
downloadCMake-f12742d6cdffd62378a4bbf8eeff0c552d2d9093.zip
CMake-f12742d6cdffd62378a4bbf8eeff0c552d2d9093.tar.gz
CMake-f12742d6cdffd62378a4bbf8eeff0c552d2d9093.tar.bz2
ENH: Patch from Alex to add IsDiscouraged method for future use in generating separate documentation for old commands. Also modified documentation of MAKE_DIRECTORY and REMOVE commands to indicate they should not be used.
Diffstat (limited to 'Source/cmMakeDirectoryCommand.h')
-rw-r--r--Source/cmMakeDirectoryCommand.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmMakeDirectoryCommand.h b/Source/cmMakeDirectoryCommand.h
index a25a8d4..7380bcb 100644
--- a/Source/cmMakeDirectoryCommand.h
+++ b/Source/cmMakeDirectoryCommand.h
@@ -60,7 +60,7 @@ public:
*/
virtual const char* GetTerseDocumentation()
{
- return "Create a directory on the file system.";
+ return "Old directory creation command. Use the FILE command.";
}
/**
@@ -69,12 +69,21 @@ public:
virtual const char* GetFullDocumentation()
{
return
+ "This command has been superceded by the FILE(MAKE_DIRECTORY ...) "
+ "command. "
+ "It is provided for compatibility with older CMake code.\n"
" MAKE_DIRECTORY(directory)\n"
"Creates the specified directory. Full paths should be given. Any "
"parent directories that do not exist will also be created. Use with "
"care.";
}
+ /** This command is only kept for compatibility with older CMake versions. */
+ virtual bool IsDiscouraged()
+ {
+ return true;
+ }
+
cmTypeMacro(cmMakeDirectoryCommand, cmCommand);
};