summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-10-10 15:47:43 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-10-10 15:47:43 (GMT)
commit8d32d229a3b77f7cb0dd708c6a492fa33797b9f0 (patch)
tree616c727c9b0609549374c223079b367172bffeff
parent8e4c7b99e1b73c641308c0177673dac33fe57df1 (diff)
downloadCMake-8d32d229a3b77f7cb0dd708c6a492fa33797b9f0.zip
CMake-8d32d229a3b77f7cb0dd708c6a492fa33797b9f0.tar.gz
CMake-8d32d229a3b77f7cb0dd708c6a492fa33797b9f0.tar.bz2
ENH: make commands lower case by default
-rw-r--r--Source/cmAddCustomCommandCommand.h8
-rw-r--r--Source/cmAddCustomTargetCommand.h6
-rw-r--r--Source/cmAddDefinitionsCommand.h4
-rw-r--r--Source/cmAddDependenciesCommand.h4
-rw-r--r--Source/cmAddExecutableCommand.h4
-rw-r--r--Source/cmAddLibraryCommand.h4
-rw-r--r--Source/cmAddSubDirectoryCommand.h4
-rw-r--r--Source/cmAddTestCommand.h4
-rw-r--r--Source/cmAuxSourceDirectoryCommand.h4
-rw-r--r--Source/cmBuildCommand.h4
-rw-r--r--Source/cmBuildNameCommand.h4
-rw-r--r--Source/cmCMakeMinimumRequired.h4
-rw-r--r--Source/cmConfigureFileCommand.h4
-rw-r--r--Source/cmCreateTestSourceList.h4
-rw-r--r--Source/cmDefinePropertyCommand.h4
-rw-r--r--Source/cmDocumentation.cxx4
-rw-r--r--Source/cmElseCommand.h8
-rw-r--r--Source/cmElseIfCommand.h8
-rw-r--r--Source/cmEnableLanguageCommand.h4
-rw-r--r--Source/cmEnableTestingCommand.h6
-rw-r--r--Source/cmEndForEachCommand.h4
-rw-r--r--Source/cmEndIfCommand.h8
-rw-r--r--Source/cmEndMacroCommand.h8
-rw-r--r--Source/cmEndWhileCommand.h8
-rw-r--r--Source/cmExecProgramCommand.h6
-rw-r--r--Source/cmExecuteProcessCommand.h8
-rw-r--r--Source/cmExportCommand.h4
-rw-r--r--Source/cmExportLibraryDependencies.h4
-rw-r--r--Source/cmFLTKWrapUICommand.h4
-rw-r--r--Source/cmFileCommand.h43
-rw-r--r--Source/cmFindFileCommand.cxx2
-rw-r--r--Source/cmFindFileCommand.h2
-rw-r--r--Source/cmFindLibraryCommand.cxx2
-rw-r--r--Source/cmFindLibraryCommand.h2
-rw-r--r--Source/cmFindPackageCommand.h4
-rw-r--r--Source/cmFindPathCommand.cxx2
-rw-r--r--Source/cmFindPathCommand.h2
-rw-r--r--Source/cmFindProgramCommand.cxx2
-rw-r--r--Source/cmFindProgramCommand.h2
-rw-r--r--Source/cmForEachCommand.h16
-rw-r--r--Source/cmGetCMakePropertyCommand.h4
-rw-r--r--Source/cmGetDirectoryPropertyCommand.h4
-rw-r--r--Source/cmGetFilenameComponentCommand.h6
-rw-r--r--Source/cmGetPropertyCommand.h4
-rw-r--r--Source/cmGetSourceFilePropertyCommand.h6
-rw-r--r--Source/cmGetTargetPropertyCommand.h6
-rw-r--r--Source/cmGetTestPropertyCommand.h4
-rw-r--r--Source/cmIfCommand.h72
-rw-r--r--Source/cmIncludeCommand.h8
-rw-r--r--Source/cmIncludeDirectoryCommand.h6
-rw-r--r--Source/cmIncludeExternalMSProjectCommand.h4
-rw-r--r--Source/cmIncludeRegularExpressionCommand.h4
-rw-r--r--Source/cmInstallCommand.h20
-rw-r--r--Source/cmInstallFilesCommand.h16
-rw-r--r--Source/cmInstallProgramsCommand.h12
-rw-r--r--Source/cmInstallTargetsCommand.h8
-rw-r--r--Source/cmLinkDirectoriesCommand.h4
-rw-r--r--Source/cmLinkLibrariesCommand.h10
-rw-r--r--Source/cmListCommand.h20
-rw-r--r--Source/cmLoadCacheCommand.h6
-rw-r--r--Source/cmLoadCommandCommand.h4
-rw-r--r--Source/cmMacroCommand.h10
-rw-r--r--Source/cmMakeDirectoryCommand.h6
-rw-r--r--Source/cmMarkAsAdvancedCommand.h6
-rw-r--r--Source/cmMathCommand.h4
-rw-r--r--Source/cmMessageCommand.h4
-rw-r--r--Source/cmOptionCommand.h4
-rw-r--r--Source/cmOutputRequiredFilesCommand.h4
-rw-r--r--Source/cmProjectCommand.h4
-rw-r--r--Source/cmQTWrapCPPCommand.h4
-rw-r--r--Source/cmQTWrapUICommand.h4
-rw-r--r--Source/cmRemoveCommand.h6
-rw-r--r--Source/cmRemoveDefinitionsCommand.h4
-rw-r--r--Source/cmSeparateArgumentsCommand.h4
-rw-r--r--Source/cmSetCommand.h8
-rw-r--r--Source/cmSetDirectoryPropertiesCommand.h4
-rw-r--r--Source/cmSetPropertiesCommand.h4
-rw-r--r--Source/cmSetSourceFilesPropertiesCommand.h4
-rw-r--r--Source/cmSetTargetPropertiesCommand.h4
-rw-r--r--Source/cmSetTestsPropertiesCommand.h4
-rw-r--r--Source/cmSiteNameCommand.h4
-rw-r--r--Source/cmSourceGroupCommand.h8
-rw-r--r--Source/cmStringCommand.h34
-rw-r--r--Source/cmSubdirCommand.h10
-rw-r--r--Source/cmSubdirDependsCommand.h4
-rw-r--r--Source/cmTargetLinkLibrariesCommand.h4
-rw-r--r--Source/cmTryCompileCommand.h18
-rw-r--r--Source/cmTryRunCommand.h12
-rw-r--r--Source/cmUseMangledMesaCommand.h4
-rw-r--r--Source/cmUtilitySourceCommand.h6
-rw-r--r--Source/cmVariableRequiresCommand.h6
-rw-r--r--Source/cmVariableWatchCommand.h4
-rw-r--r--Source/cmWhileCommand.h10
-rw-r--r--Source/cmWriteFileCommand.h14
-rw-r--r--Tests/CommandLineTest/CMakeLists.txt4
95 files changed, 345 insertions, 346 deletions
diff --git a/Source/cmAddCustomCommandCommand.h b/Source/cmAddCustomCommandCommand.h
index 845c594..31dc2ac 100644
--- a/Source/cmAddCustomCommandCommand.h
+++ b/Source/cmAddCustomCommandCommand.h
@@ -47,7 +47,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "ADD_CUSTOM_COMMAND";}
+ virtual const char* GetName() {return "add_custom_command";}
/**
* Succinct documentation.
@@ -63,10 +63,10 @@ public:
virtual const char* GetFullDocumentation()
{
return
- "There are two main signatures for ADD_CUSTOM_COMMAND "
+ "There are two main signatures for add_custom_command "
"The first signature is for adding a custom command "
"to produce an output.\n"
- " ADD_CUSTOM_COMMAND(OUTPUT output1 [output2 ...]\n"
+ " add_custom_command(OUTPUT output1 [output2 ...]\n"
" COMMAND command1 [ARGS] [args1...]\n"
" [COMMAND command2 [ARGS] [args2...] ...]\n"
" [MAIN_DEPENDENCY depend]\n"
@@ -92,7 +92,7 @@ public:
"The command becomes part of the target and will only execute "
"when the target itself is built. If the target is already built,"
" the command will not execute.\n"
- " ADD_CUSTOM_COMMAND(TARGET target\n"
+ " add_custom_command(TARGET target\n"
" PRE_BUILD | PRE_LINK | POST_BUILD\n"
" COMMAND command1 [ARGS] [args1...]\n"
" [COMMAND command2 [ARGS] [args2...] ...]\n"
diff --git a/Source/cmAddCustomTargetCommand.h b/Source/cmAddCustomTargetCommand.h
index b8808b8..f9da054 100644
--- a/Source/cmAddCustomTargetCommand.h
+++ b/Source/cmAddCustomTargetCommand.h
@@ -47,7 +47,7 @@ public:
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName()
- {return "ADD_CUSTOM_TARGET";}
+ {return "add_custom_target";}
/**
* Succinct documentation.
@@ -63,7 +63,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ADD_CUSTOM_TARGET(Name [ALL] [command1 [args1...]]\n"
+ " add_custom_target(Name [ALL] [command1 [args1...]]\n"
" [COMMAND command2 [args2...] ...]\n"
" [DEPENDS depend depend depend ... ]\n"
" [WORKING_DIRECTORY dir]\n"
@@ -89,7 +89,7 @@ public:
"If VERBATIM is given then all the arguments to the commands will be "
"passed exactly as specified no matter the build tool used. "
"Note that one level of escapes is still used by the CMake language "
- "processor before ADD_CUSTOM_TARGET even sees the arguments. "
+ "processor before add_custom_target even sees the arguments. "
"Use of VERBATIM is recommended as it enables correct behavior. "
"When VERBATIM is not given the behavior is platform specific. "
"In the future VERBATIM may be enabled by default. The only reason "
diff --git a/Source/cmAddDefinitionsCommand.h b/Source/cmAddDefinitionsCommand.h
index cd4343e..7bf7116 100644
--- a/Source/cmAddDefinitionsCommand.h
+++ b/Source/cmAddDefinitionsCommand.h
@@ -45,7 +45,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "ADD_DEFINITIONS";}
+ virtual const char* GetName() {return "add_definitions";}
/**
* Succinct documentation.
@@ -61,7 +61,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ADD_DEFINITIONS(-DFOO -DBAR ...)\n"
+ " add_definitions(-DFOO -DBAR ...)\n"
"Adds flags to command line of C and C++ compilers. "
"This command can be used to add any flag to a compile line, "
"but the -D flag is accepted most C/C++ compilers. "
diff --git a/Source/cmAddDependenciesCommand.h b/Source/cmAddDependenciesCommand.h
index 2e83af0..3c8147b 100644
--- a/Source/cmAddDependenciesCommand.h
+++ b/Source/cmAddDependenciesCommand.h
@@ -44,7 +44,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "ADD_DEPENDENCIES";}
+ virtual const char* GetName() { return "add_dependencies";}
/**
* Succinct documentation.
@@ -60,7 +60,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ADD_DEPENDENCIES(target-name depend-target1\n"
+ " add_dependencies(target-name depend-target1\n"
" depend-target2 ...)\n"
"Make a top-level target depend on other top-level targets. A "
"top-level target is one created by ADD_EXECUTABLE, ADD_LIBRARY, "
diff --git a/Source/cmAddExecutableCommand.h b/Source/cmAddExecutableCommand.h
index bef409e..2e78742 100644
--- a/Source/cmAddExecutableCommand.h
+++ b/Source/cmAddExecutableCommand.h
@@ -45,7 +45,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "ADD_EXECUTABLE";}
+ virtual const char* GetName() { return "add_executable";}
/**
* Succinct documentation.
@@ -62,7 +62,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ADD_EXECUTABLE(exename [WIN32] [MACOSX_BUNDLE] [EXCLUDE_FROM_ALL]\n"
+ " add_executable(exename [WIN32] [MACOSX_BUNDLE] [EXCLUDE_FROM_ALL]\n"
" source1 source2 ... sourceN)\n"
"This command adds an executable target to the current directory. "
"The executable will be built from the list of source files "
diff --git a/Source/cmAddLibraryCommand.h b/Source/cmAddLibraryCommand.h
index b128a08..e9d8f2f 100644
--- a/Source/cmAddLibraryCommand.h
+++ b/Source/cmAddLibraryCommand.h
@@ -45,7 +45,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "ADD_LIBRARY";}
+ virtual const char* GetName() { return "add_library";}
/**
* Succinct documentation.
@@ -61,7 +61,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ADD_LIBRARY(libname [SHARED | STATIC | MODULE] [EXCLUDE_FROM_ALL]\n"
+ " add_library(libname [SHARED | STATIC | MODULE] [EXCLUDE_FROM_ALL]\n"
" source1 source2 ... sourceN)\n"
"Adds a library target. SHARED, STATIC or MODULE keywords are used "
"to set the library type. If the keyword MODULE appears, the library "
diff --git a/Source/cmAddSubDirectoryCommand.h b/Source/cmAddSubDirectoryCommand.h
index f4b0d0b..ca09858 100644
--- a/Source/cmAddSubDirectoryCommand.h
+++ b/Source/cmAddSubDirectoryCommand.h
@@ -46,7 +46,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "ADD_SUBDIRECTORY";}
+ virtual const char* GetName() { return "add_subdirectory";}
/**
* Succinct documentation.
@@ -62,7 +62,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ADD_SUBDIRECTORY(source_dir [binary_dir] \n"
+ " add_subdirectory(source_dir [binary_dir] \n"
" [EXCLUDE_FROM_ALL])\n"
"Add a subdirectory to the build. The source_dir specifies the "
"directory in which the source CmakeLists.txt and code files are "
diff --git a/Source/cmAddTestCommand.h b/Source/cmAddTestCommand.h
index 998f922..22f4412 100644
--- a/Source/cmAddTestCommand.h
+++ b/Source/cmAddTestCommand.h
@@ -44,7 +44,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "ADD_TEST";}
+ virtual const char* GetName() { return "add_test";}
/**
* Succinct documentation.
@@ -60,7 +60,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ADD_TEST(testname Exename arg1 arg2 ...)\n"
+ " add_test(testname Exename arg1 arg2 ...)\n"
"If the ENABLE_TESTING command has been run, this command adds a "
"test target to the current directory. If ENABLE_TESTING has not "
"been run, this command does nothing. "
diff --git a/Source/cmAuxSourceDirectoryCommand.h b/Source/cmAuxSourceDirectoryCommand.h
index 09fc5f8..63b8cb3 100644
--- a/Source/cmAuxSourceDirectoryCommand.h
+++ b/Source/cmAuxSourceDirectoryCommand.h
@@ -48,7 +48,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "AUX_SOURCE_DIRECTORY";}
+ virtual const char* GetName() { return "aux_source_directory";}
/**
* Succinct documentation.
@@ -64,7 +64,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " AUX_SOURCE_DIRECTORY(dir VARIABLE)\n"
+ " aux_source_directory(dir VARIABLE)\n"
"Collects the names of all the source files in the specified "
"directory and stores the list in the variable provided. This "
"command is intended to be used by projects that use explicit "
diff --git a/Source/cmBuildCommand.h b/Source/cmBuildCommand.h
index 255f474..714b8af 100644
--- a/Source/cmBuildCommand.h
+++ b/Source/cmBuildCommand.h
@@ -44,7 +44,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "BUILD_COMMAND";}
+ virtual const char* GetName() {return "build_command";}
/**
* Succinct documentation.
@@ -60,7 +60,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " BUILD_COMMAND(variable MAKECOMMAND)\n"
+ " build_command(variable MAKECOMMAND)\n"
"Sets the given variable to a string containing the command that "
"will build this project from the root of the build tree using the "
"build tool given by MAKECOMMAND. MAKECOMMAND should be msdev, "
diff --git a/Source/cmBuildNameCommand.h b/Source/cmBuildNameCommand.h
index b7f29c5..c60fc19 100644
--- a/Source/cmBuildNameCommand.h
+++ b/Source/cmBuildNameCommand.h
@@ -49,7 +49,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "BUILD_NAME";}
+ virtual const char* GetName() {return "build_name";}
/**
* Succinct documentation.
@@ -66,7 +66,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " BUILD_NAME(variable)\n"
+ " build_name(variable)\n"
"Sets the specified variable to a string representing the platform "
"and compiler settings. These values are now available through the "
"CMAKE_SYSTEM and CMAKE_CXX_COMPILER variables.";
diff --git a/Source/cmCMakeMinimumRequired.h b/Source/cmCMakeMinimumRequired.h
index 402e289..736e487 100644
--- a/Source/cmCMakeMinimumRequired.h
+++ b/Source/cmCMakeMinimumRequired.h
@@ -49,7 +49,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "CMAKE_MINIMUM_REQUIRED";}
+ virtual const char* GetName() {return "cmake_minimum_required";}
/**
* Succinct documentation.
@@ -65,7 +65,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " CMAKE_MINIMUM_REQUIRED(VERSION versionNumber [FATAL_ERROR])\n"
+ " cmake_minimum_required(VERSION versionNumber [FATAL_ERROR])\n"
"Let cmake know that the project requires a certain version of a "
"cmake, or newer. CMake will also try to be backwards compatible to "
"the version of cmake specified, if a newer version of cmake is "
diff --git a/Source/cmConfigureFileCommand.h b/Source/cmConfigureFileCommand.h
index ce0a5cd..90228eb 100644
--- a/Source/cmConfigureFileCommand.h
+++ b/Source/cmConfigureFileCommand.h
@@ -38,7 +38,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "CONFIGURE_FILE";}
+ virtual const char* GetName() { return "configure_file";}
/**
* This determines if the command is invoked when in script mode.
@@ -59,7 +59,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " CONFIGURE_FILE(InputFile OutputFile\n"
+ " configure_file(InputFile OutputFile\n"
" [COPYONLY] [ESCAPE_QUOTES] [@ONLY])\n"
"The Input and Ouput files have to have full paths. "
"This command replaces any variables in the input file referenced as "
diff --git a/Source/cmCreateTestSourceList.h b/Source/cmCreateTestSourceList.h
index b484c08..ff1a9e7 100644
--- a/Source/cmCreateTestSourceList.h
+++ b/Source/cmCreateTestSourceList.h
@@ -44,7 +44,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "CREATE_TEST_SOURCELIST";}
+ virtual const char* GetName() {return "create_test_sourcelist";}
/**
* Succinct documentation.
@@ -60,7 +60,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " CREATE_TEST_SOURCELIST(SourceListName DriverName\n"
+ " create_test_sourcelist(SourceListName DriverName\n"
" test1 test2 test3\n"
" EXTRA_INCLUDE include.h\n"
" FUNCTION function)\n"
diff --git a/Source/cmDefinePropertyCommand.h b/Source/cmDefinePropertyCommand.h
index 0cc1f31..5da7b34 100644
--- a/Source/cmDefinePropertyCommand.h
+++ b/Source/cmDefinePropertyCommand.h
@@ -36,7 +36,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "DEFINE_PROPERTY";}
+ virtual const char* GetName() { return "define_property";}
/**
* Succinct documentation.
@@ -52,7 +52,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " DEFINE_PROPERTY(property_name scope_value\n"
+ " define_property(property_name scope_value\n"
" short_description\n"
" full_description inherit)\n"
"Define a property for a scope. scope_value is either GLOBAL, "
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 6c54254..a521cc7 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -696,7 +696,7 @@ bool cmDocumentation::CheckOptions(int argc, const char* const* argv)
help.HelpType = cmDocumentation::Usage;
help.HelpForm = cmDocumentation::UsageForm;
GET_OPT_ARGUMENT(help.Argument);
- help.Argument = cmSystemTools::UpperCase(help.Argument);
+ help.Argument = cmSystemTools::LowerCase(help.Argument);
// special case for single command
if (!help.Argument.empty())
{
@@ -756,7 +756,7 @@ bool cmDocumentation::CheckOptions(int argc, const char* const* argv)
help.HelpType = cmDocumentation::Single;
GET_OPT_ARGUMENT(help.Argument);
GET_OPT_ARGUMENT(help.Filename);
- help.Argument = cmSystemTools::UpperCase(help.Argument);
+ help.Argument = cmSystemTools::LowerCase(help.Argument);
help.HelpForm = this->GetFormFromFilename(help.Filename);
}
else if(strcmp(argv[i], "--help-module") == 0)
diff --git a/Source/cmElseCommand.h b/Source/cmElseCommand.h
index e3d7e99..41b5bf9 100644
--- a/Source/cmElseCommand.h
+++ b/Source/cmElseCommand.h
@@ -49,14 +49,14 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "ELSE";}
+ virtual const char* GetName() { return "else";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
- return "Starts the ELSE portion of an IF block.";
+ return "Starts the else portion of an if block.";
}
/**
@@ -65,8 +65,8 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ELSE(expression)\n"
- "See the IF command.";
+ " else(expression)\n"
+ "See the if command.";
}
cmTypeMacro(cmElseCommand, cmCommand);
diff --git a/Source/cmElseIfCommand.h b/Source/cmElseIfCommand.h
index ca6b1f4..2d251e4 100644
--- a/Source/cmElseIfCommand.h
+++ b/Source/cmElseIfCommand.h
@@ -49,14 +49,14 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "ELSEIF";}
+ virtual const char* GetName() { return "elseif";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
- return "Starts the ELSEIF portion of an IF block.";
+ return "Starts the elseif portion of an if block.";
}
/**
@@ -65,8 +65,8 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ELSEIF(expression)\n"
- "See the IF command.";
+ " elseif(expression)\n"
+ "See the if command.";
}
cmTypeMacro(cmElseIfCommand, cmCommand);
diff --git a/Source/cmEnableLanguageCommand.h b/Source/cmEnableLanguageCommand.h
index c1c99d1..a542204 100644
--- a/Source/cmEnableLanguageCommand.h
+++ b/Source/cmEnableLanguageCommand.h
@@ -47,7 +47,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "ENABLE_LANGUAGE";}
+ virtual const char* GetName() {return "enable_language";}
/**
* Succinct documentation.
@@ -63,7 +63,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ENABLE_LANGUAGE(languageName [OPTIONAL] )\n"
+ " enable_language(languageName [OPTIONAL] )\n"
"This command enables support for the named language in CMake. "
"This is the same as the project command but does not create "
"any of the extra varaibles that are created by the project command. "
diff --git a/Source/cmEnableTestingCommand.h b/Source/cmEnableTestingCommand.h
index 8a2938d..a019088 100644
--- a/Source/cmEnableTestingCommand.h
+++ b/Source/cmEnableTestingCommand.h
@@ -52,7 +52,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "ENABLE_TESTING";}
+ virtual const char* GetName() { return "enable_testing";}
/**
* Succinct documentation.
@@ -68,9 +68,9 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ENABLE_TESTING()\n"
+ " enable_testing()\n"
"Enables testing for this directory and below. "
- "See also the ADD_TEST command. Note that ctest expects to find "
+ "See also the add_test command. Note that ctest expects to find "
"a test file in the build directory root. Therefore, this command "
"should be in the source directory root.";
}
diff --git a/Source/cmEndForEachCommand.h b/Source/cmEndForEachCommand.h
index 2f22e4f..03e1ef2 100644
--- a/Source/cmEndForEachCommand.h
+++ b/Source/cmEndForEachCommand.h
@@ -55,7 +55,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "ENDFOREACH";}
+ virtual const char* GetName() { return "endforeach";}
/**
* Succinct documentation.
@@ -71,7 +71,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ENDFOREACH(expression)\n"
+ " endforeach(expression)\n"
"See the FOREACH command.";
}
diff --git a/Source/cmEndIfCommand.h b/Source/cmEndIfCommand.h
index 2092c61..846e991 100644
--- a/Source/cmEndIfCommand.h
+++ b/Source/cmEndIfCommand.h
@@ -49,14 +49,14 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "ENDIF";}
+ virtual const char* GetName() { return "endif";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
- return "Ends a list of commands in an IF block.";
+ return "Ends a list of commands in an if block.";
}
/**
@@ -65,8 +65,8 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ENDIF(expression)\n"
- "See the IF command.";
+ " endif(expression)\n"
+ "See the if command.";
}
cmTypeMacro(cmEndIfCommand, cmCommand);
diff --git a/Source/cmEndMacroCommand.h b/Source/cmEndMacroCommand.h
index be1467b..d0b0982 100644
--- a/Source/cmEndMacroCommand.h
+++ b/Source/cmEndMacroCommand.h
@@ -55,14 +55,14 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "ENDMACRO";}
+ virtual const char* GetName() { return "endmacro";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
- return "Ends a list of commands in a MACRO block.";
+ return "Ends a list of commands in a macro block.";
}
/**
@@ -71,8 +71,8 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ENDMACRO(expression)\n"
- "See the MACRO command.";
+ " endmacro(expression)\n"
+ "See the macro command.";
}
cmTypeMacro(cmEndMacroCommand, cmCommand);
diff --git a/Source/cmEndWhileCommand.h b/Source/cmEndWhileCommand.h
index 28f0a13..da0a917 100644
--- a/Source/cmEndWhileCommand.h
+++ b/Source/cmEndWhileCommand.h
@@ -55,14 +55,14 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "ENDWHILE";}
+ virtual const char* GetName() { return "endwhile";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
- return "Ends a list of commands in a WHILE block.";
+ return "Ends a list of commands in a while block.";
}
/**
@@ -71,8 +71,8 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " ENDWHILE(expression)\n"
- "See the WHILE command.";
+ " endwhile(expression)\n"
+ "See the while command.";
}
cmTypeMacro(cmEndWhileCommand, cmCommand);
diff --git a/Source/cmExecProgramCommand.h b/Source/cmExecProgramCommand.h
index 1117561..a16c8f7 100644
--- a/Source/cmExecProgramCommand.h
+++ b/Source/cmExecProgramCommand.h
@@ -47,7 +47,7 @@ public:
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName()
- {return "EXEC_PROGRAM";}
+ {return "exec_program";}
/**
* This determines if the command is invoked when in script mode.
@@ -60,7 +60,7 @@ public:
virtual const char* GetTerseDocumentation()
{
return
- "Deprecated. Use the EXECUTE_PROCESS() command instead.";
+ "Deprecated. Use the execute_process() command instead.";
}
/**
@@ -71,7 +71,7 @@ public:
return
"Run an executable program during the processing of the CMakeList.txt"
" file.\n"
- " EXEC_PROGRAM(Executable [directory in which to run]\n"
+ " exec_program(Executable [directory in which to run]\n"
" [ARGS <arguments to executable>]\n"
" [OUTPUT_VARIABLE <var>]\n"
" [RETURN_VALUE <var>])\n"
diff --git a/Source/cmExecuteProcessCommand.h b/Source/cmExecuteProcessCommand.h
index a9286a7..8564e2b 100644
--- a/Source/cmExecuteProcessCommand.h
+++ b/Source/cmExecuteProcessCommand.h
@@ -46,7 +46,7 @@ public:
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName()
- {return "EXECUTE_PROCESS";}
+ {return "execute_process";}
/**
* This determines if the command is invoked when in script mode.
@@ -67,7 +67,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " EXECUTE_PROCESS(COMMAND <cmd1> [args1...]]\n"
+ " execute_process(COMMAND <cmd1> [args1...]]\n"
" [COMMAND <cmd2> [args2...] [...]]\n"
" [WORKING_DIRECTORY <directory>]\n"
" [TIMEOUT <seconds>]\n"
@@ -106,8 +106,8 @@ public:
"pipe the precedence is not specified. "
"If no OUTPUT_* or ERROR_* options are given the output will be shared "
"with the corresponding pipes of the CMake process itself.\n"
- "The EXECUTE_PROCESS command is a newer more powerful version of "
- "EXEC_PROGRAM, but the old command has been kept for compatibility."
+ "The execute_process command is a newer more powerful version of "
+ "exec_program, but the old command has been kept for compatibility."
;
}
diff --git a/Source/cmExportCommand.h b/Source/cmExportCommand.h
index 22b5904..9382fcf 100644
--- a/Source/cmExportCommand.h
+++ b/Source/cmExportCommand.h
@@ -46,7 +46,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "EXPORT";}
+ virtual const char* GetName() { return "export";}
/**
* Succinct documentation.
@@ -63,7 +63,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " EXPORT(TARGETS tgt1 tgt2 ... [PREFIX <prefix>] FILE <filename> "
+ " export(TARGETS tgt1 tgt2 ... [PREFIX <prefix>] FILE <filename> "
"[APPEND])\n"
"Create a file that can be included into a CMake listfile with the "
"INCLUDE command. The file will contain a number of SET commands "
diff --git a/Source/cmExportLibraryDependencies.h b/Source/cmExportLibraryDependencies.h
index 73a068f..8e23d2b 100644
--- a/Source/cmExportLibraryDependencies.h
+++ b/Source/cmExportLibraryDependencies.h
@@ -51,7 +51,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "EXPORT_LIBRARY_DEPENDENCIES";}
+ virtual const char* GetName() { return "export_library_dependencies";}
/**
* Succinct documentation.
@@ -68,7 +68,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " EXPORT_LIBRARY_DEPENDENCIES(FILE [APPEND])\n"
+ " export_library_dependencies(FILE [APPEND])\n"
"Create a file that can be included into a CMake listfile with the "
"INCLUDE command. The file will contain a number of SET commands "
"that will set all the variables needed for library dependency "
diff --git a/Source/cmFLTKWrapUICommand.h b/Source/cmFLTKWrapUICommand.h
index e88e1b9..b383a91 100644
--- a/Source/cmFLTKWrapUICommand.h
+++ b/Source/cmFLTKWrapUICommand.h
@@ -55,7 +55,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "FLTK_WRAP_UI";}
+ virtual const char* GetName() { return "fltk_wrap_ui";}
/**
* Succinct documentation.
@@ -71,7 +71,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " FLTK_WRAP_UI(resultingLibraryName source1\n"
+ " fltk_wrap_ui(resultingLibraryName source1\n"
" source2 ... sourceN )\n"
"Produce .h and .cxx files for all the .fl and .fld files listed. "
"The resulting .h and .cxx files will be added to a variable named "
diff --git a/Source/cmFileCommand.h b/Source/cmFileCommand.h
index c779cf3..b629df0 100644
--- a/Source/cmFileCommand.h
+++ b/Source/cmFileCommand.h
@@ -50,7 +50,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "FILE";}
+ virtual const char* GetName() { return "file";}
/**
* Succinct documentation.
@@ -66,31 +66,31 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " FILE(WRITE filename \"message to write\"... )\n"
- " FILE(APPEND filename \"message to write\"... )\n"
- " FILE(READ filename variable [LIMIT numBytes])\n"
- " FILE(STRINGS filename variable [LIMIT_COUNT num]\n"
+ " file(WRITE filename \"message to write\"... )\n"
+ " file(APPEND filename \"message to write\"... )\n"
+ " file(READ filename variable [LIMIT numBytes])\n"
+ " file(STRINGS filename variable [LIMIT_COUNT num]\n"
" [LIMIT_INPUT numBytes] [LIMIT_OUTPUT numBytes]\n"
" [LENGTH_MINIMUM numBytes] [LENGTH_MAXIMUM numBytes]\n"
" [NEWLINE_CONSUME] [REGEX regex]\n"
" [NO_HEX_CONVERSION])\n"
- " FILE(GLOB variable [RELATIVE path] [globbing expressions]...)\n"
- " FILE(GLOB_RECURSE variable [RELATIVE path] \n"
+ " file(GLOB variable [RELATIVE path] [globbing expressions]...)\n"
+ " file(GLOB_RECURSE variable [RELATIVE path] \n"
" [globbing expressions]...)\n"
- " FILE(REMOVE [file1 ...])\n"
- " FILE(REMOVE_RECURSE [file1 ...])\n"
- " FILE(MAKE_DIRECTORY [directory1 directory2 ...])\n"
- " FILE(RELATIVE_PATH variable directory file)\n"
- " FILE(TO_CMAKE_PATH path result)\n"
- " FILE(TO_NATIVE_PATH path result)\n"
+ " file(REMOVE [file1 ...])\n"
+ " file(REMOVE_RECURSE [file1 ...])\n"
+ " file(MAKE_DIRECTORY [directory1 directory2 ...])\n"
+ " file(RELATIVE_PATH variable directory file)\n"
+ " file(TO_CMAKE_PATH path result)\n"
+ " file(TO_NATIVE_PATH path result)\n"
"WRITE will write a message into a file called 'filename'. It "
"overwrites the file if it already exists, and creates the file "
"if it does not exist.\n"
"APPEND will write a message into a file same as WRITE, except "
"it will append it to the end of the file\n"
- "NOTE: When using FILE WRITE and FILE APPEND, the produced file "
- "cannot be used as an input to CMake (CONFIGURE_FILE, source file ...) "
- "because it will lead to an infinite loop. Use CONFIGURE_FILE if you "
+ "NOTE: When using file WRITE and file APPEND, the produced file "
+ "cannot be used as an input to CMake (configure_file, source file ...) "
+ "because it will lead to an infinite loop. Use configure_file if you "
"want to generate input files to CMake.\n"
"READ will read the content of a file and store it into the "
"variable.\n"
@@ -98,7 +98,7 @@ public:
"store it in a variable. Binary data in the file are ignored. Carriage "
"return (CR) characters are ignored. It works also for Intel Hex and "
"Motorola S-record files, which are automatically converted to binary "
- "format when reading them. Disable this using NO_HEX_CONVERSION.\n "
+ "format when reading them. Disable this using NO_HEX_CONVERSION.\n"
"LIMIT_COUNT sets the maximum number of strings to return. "
"LIMIT_INPUT sets the maximum number of bytes to read from "
"the input file. "
@@ -109,11 +109,10 @@ public:
"LENGTH_MAXIMUM sets the maximum length of a string to return. Longer "
"strings are split into strings no longer than the maximum length. "
"NEWLINE_CONSUME allows newlines to be included in strings instead "
- "of terminating them. "
+ "of terminating them.\n"
"REGEX specifies a regular expression that a string must match to be "
- "returned. "
- "Typical usage \n"
- " FILE(STRINGS myfile.txt myfile)\n"
+ "returned. Typical usage \n"
+ " file(STRINGS myfile.txt myfile)\n"
"stores a list in the variable \"myfile\" in which each item is "
"a line from the input file.\n"
"GLOB will generate a list of all files that match the globbing "
@@ -160,7 +159,7 @@ protected:
bool HandleCMakePathCommand(std::vector<std::string> const& args,
bool nativePath);
- // FILE(INSTALL ...) related functions
+ // file(INSTALL ...) related functions
bool HandleInstallCommand(std::vector<std::string> const& args);
bool ParseInstallArgs(std::vector<std::string> const& args,
cmFileInstaller& installer,
diff --git a/Source/cmFindFileCommand.cxx b/Source/cmFindFileCommand.cxx
index 04d0af7..36bcbd2 100644
--- a/Source/cmFindFileCommand.cxx
+++ b/Source/cmFindFileCommand.cxx
@@ -21,7 +21,7 @@ cmFindFileCommand::cmFindFileCommand()
{
this->IncludeFileInPath = true;
cmSystemTools::ReplaceString(this->GenericDocumentation,
- "FIND_PATH", "FIND_FILE");
+ "FIND_PATH", "find_file");
cmSystemTools::ReplaceString(this->GenericDocumentation,
"directory containing the named file",
"full path to named file");
diff --git a/Source/cmFindFileCommand.h b/Source/cmFindFileCommand.h
index d65a51e..a4bf5da 100644
--- a/Source/cmFindFileCommand.h
+++ b/Source/cmFindFileCommand.h
@@ -38,7 +38,7 @@ public:
{
return new cmFindFileCommand;
}
- virtual const char* GetName() { return "FIND_FILE";}
+ virtual const char* GetName() { return "find_file";}
/**
* Succinct documentation.
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx
index 157eb3f..7971221 100644
--- a/Source/cmFindLibraryCommand.cxx
+++ b/Source/cmFindLibraryCommand.cxx
@@ -20,7 +20,7 @@
cmFindLibraryCommand::cmFindLibraryCommand()
{
cmSystemTools::ReplaceString(this->GenericDocumentation,
- "FIND_XXX", "FIND_LIBRARY");
+ "FIND_XXX", "find_library");
cmSystemTools::ReplaceString(this->GenericDocumentation,
"CMAKE_XXX_PATH", "CMAKE_LIBRARY_PATH");
cmSystemTools::ReplaceString(this->GenericDocumentation,
diff --git a/Source/cmFindLibraryCommand.h b/Source/cmFindLibraryCommand.h
index 52f4a45..88bbb32 100644
--- a/Source/cmFindLibraryCommand.h
+++ b/Source/cmFindLibraryCommand.h
@@ -53,7 +53,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "FIND_LIBRARY";}
+ virtual const char* GetName() {return "find_library";}
/**
* Succinct documentation.
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h
index e46b4c8..ae04f6c 100644
--- a/Source/cmFindPackageCommand.h
+++ b/Source/cmFindPackageCommand.h
@@ -49,7 +49,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "FIND_PACKAGE";}
+ virtual const char* GetName() { return "find_package";}
/**
* Succinct documentation.
@@ -65,7 +65,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " FIND_PACKAGE(<name> [major.minor] [QUIET] [NO_MODULE]\n"
+ " find_package(<name> [major.minor] [QUIET] [NO_MODULE]\n"
" [[REQUIRED|COMPONENTS] [components...]])\n"
"Finds and loads settings from an external project. <name>_FOUND will "
"be set to indicate whether the package was found. Settings that "
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx
index a39e414..1210b3b 100644
--- a/Source/cmFindPathCommand.cxx
+++ b/Source/cmFindPathCommand.cxx
@@ -23,7 +23,7 @@ cmFindPathCommand::cmFindPathCommand()
{
this->IncludeFileInPath = false;
cmSystemTools::ReplaceString(this->GenericDocumentation,
- "FIND_XXX", "FIND_PATH");
+ "FIND_XXX", "find_path");
cmSystemTools::ReplaceString(this->GenericDocumentation,
"CMAKE_XXX_PATH", "CMAKE_INCLUDE_PATH");
cmSystemTools::ReplaceString(this->GenericDocumentation,
diff --git a/Source/cmFindPathCommand.h b/Source/cmFindPathCommand.h
index 5e9c83b..f4a4f01 100644
--- a/Source/cmFindPathCommand.h
+++ b/Source/cmFindPathCommand.h
@@ -53,7 +53,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "FIND_PATH";}
+ virtual const char* GetName() {return "find_path";}
/**
* Succinct documentation.
diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx
index 1ede55b..f1b8135 100644
--- a/Source/cmFindProgramCommand.cxx
+++ b/Source/cmFindProgramCommand.cxx
@@ -25,7 +25,7 @@
cmFindProgramCommand::cmFindProgramCommand()
{
cmSystemTools::ReplaceString(this->GenericDocumentation,
- "FIND_XXX", "FIND_PROGRAM");
+ "FIND_XXX", "find_program");
cmSystemTools::ReplaceString(this->GenericDocumentation,
"CMAKE_XXX_PATH", "CMAKE_PROGRAM_PATH");
cmSystemTools::ReplaceString(this->GenericDocumentation,
diff --git a/Source/cmFindProgramCommand.h b/Source/cmFindProgramCommand.h
index 2113b02..79494f3 100644
--- a/Source/cmFindProgramCommand.h
+++ b/Source/cmFindProgramCommand.h
@@ -53,7 +53,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "FIND_PROGRAM";}
+ virtual const char* GetName() { return "find_program";}
/**
* Succinct documentation.
diff --git a/Source/cmForEachCommand.h b/Source/cmForEachCommand.h
index 04843c4..115c522 100644
--- a/Source/cmForEachCommand.h
+++ b/Source/cmForEachCommand.h
@@ -73,7 +73,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "FOREACH";}
+ virtual const char* GetName() { return "foreach";}
/**
* Succinct documentation.
@@ -89,17 +89,17 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " FOREACH(loop_var arg1 arg2 ...)\n"
+ " foreach(loop_var arg1 arg2 ...)\n"
" COMMAND1(ARGS ...)\n"
" COMMAND2(ARGS ...)\n"
" ...\n"
- " ENDFOREACH(loop_var)\n"
- " FOREACH(loop_var RANGE total)\n"
- " FOREACH(loop_var RANGE start stop [step])\n"
- "All commands between FOREACH and the matching ENDFOREACH are recorded "
- "without being invoked. Once the ENDFOREACH is evaluated, the "
+ " ENDforeach(loop_var)\n"
+ " foreach(loop_var RANGE total)\n"
+ " foreach(loop_var RANGE start stop [step])\n"
+ "All commands between foreach and the matching ENDforeach are recorded "
+ "without being invoked. Once the ENDforeach is evaluated, the "
"recorded list of commands is invoked once for each argument listed "
- "in the original FOREACH command. Before each iteration of the loop "
+ "in the original foreach command. Before each iteration of the loop "
"\"${loop_var}\" will be set as a variable with "
"the current value in the list.\n"
"Foreach can also iterate over a generated range of numbers. "
diff --git a/Source/cmGetCMakePropertyCommand.h b/Source/cmGetCMakePropertyCommand.h
index e4b095f..b0c6b13 100644
--- a/Source/cmGetCMakePropertyCommand.h
+++ b/Source/cmGetCMakePropertyCommand.h
@@ -41,7 +41,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "GET_CMAKE_PROPERTY";}
+ virtual const char* GetName() { return "get_cmake_property";}
/**
* Succinct documentation.
@@ -57,7 +57,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " GET_CMAKE_PROPERTY(VAR property)\n"
+ " get_cmake_property(VAR property)\n"
"Get a property from the CMake instance. The value of the "
"property is stored in the variable VAR. If the property is "
"not found, CMake will report an error. Some supported properties "
diff --git a/Source/cmGetDirectoryPropertyCommand.h b/Source/cmGetDirectoryPropertyCommand.h
index b146488..2e3085e 100644
--- a/Source/cmGetDirectoryPropertyCommand.h
+++ b/Source/cmGetDirectoryPropertyCommand.h
@@ -41,7 +41,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "GET_DIRECTORY_PROPERTY";}
+ virtual const char* GetName() { return "get_directory_property";}
/**
* Succinct documentation.
@@ -57,7 +57,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " GET_DIRECTORY_PROPERTY(VAR [DIRECTORY dir] property)\n"
+ " get_directory_property(VAR [DIRECTORY dir] property)\n"
"Get a property from the Directory. The value of the property is "
"stored in the variable VAR. If the property is not found, "
"CMake will report an error. The properties include: VARIABLES, "
diff --git a/Source/cmGetFilenameComponentCommand.h b/Source/cmGetFilenameComponentCommand.h
index a9c1dbb..b87ebff 100644
--- a/Source/cmGetFilenameComponentCommand.h
+++ b/Source/cmGetFilenameComponentCommand.h
@@ -50,7 +50,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "GET_FILENAME_COMPONENT";}
+ virtual const char* GetName() { return "get_filename_component";}
/**
* Succinct documentation.
@@ -66,7 +66,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " GET_FILENAME_COMPONENT(VarName FileName\n"
+ " get_filename_component(VarName FileName\n"
" PATH|ABSOLUTE|NAME|EXT|NAME_WE\n"
" [CACHE])\n"
"Set VarName to be the path (PATH), file name (NAME), file "
@@ -76,7 +76,7 @@ public:
"trailing slashes. The longest file extension is always considered. "
"If the optional CACHE argument is specified, the result variable is "
"added to the cache.\n"
- " GET_FILENAME_COMPONENT(VarName FileName\n"
+ " get_filename_component(VarName FileName\n"
" PROGRAM [PROGRAM_ARGS ArgVar]\n"
" [CACHE])\n"
"The program in FileName will be found in the system search path or "
diff --git a/Source/cmGetPropertyCommand.h b/Source/cmGetPropertyCommand.h
index 5cb4350..8f2d368 100644
--- a/Source/cmGetPropertyCommand.h
+++ b/Source/cmGetPropertyCommand.h
@@ -41,7 +41,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "GET_PROPERTY";}
+ virtual const char* GetName() { return "get_property";}
/**
* Succinct documentation.
@@ -57,7 +57,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " GET_PROPERTY(VAR scope_value property)\n"
+ " get_property(VAR scope_value property)\n"
"Get a property from cmake. The scope_value is either GLOBAL, "
"DIRECTORY dir_name, TARGET tgt_name, SOURCE_FILE src_name, "
"or TEST test_name. The resulting value is "
diff --git a/Source/cmGetSourceFilePropertyCommand.h b/Source/cmGetSourceFilePropertyCommand.h
index ed12fa7..7393548 100644
--- a/Source/cmGetSourceFilePropertyCommand.h
+++ b/Source/cmGetSourceFilePropertyCommand.h
@@ -36,7 +36,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "GET_SOURCE_FILE_PROPERTY";}
+ virtual const char* GetName() { return "get_source_file_property";}
/**
* Succinct documentation.
@@ -52,10 +52,10 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " GET_SOURCE_FILE_PROPERTY(VAR file property)\n"
+ " get_source_file_property(VAR file property)\n"
"Get a property from a source file. The value of the property is "
"stored in the variable VAR. If the property is not found, VAR "
- "will be set to \"NOTFOUND\". Use SET_SOURCE_FILES_PROPERTIES to set "
+ "will be set to \"NOTFOUND\". Use set_source_files_properties to set "
"property values. Source file properties usually control how the "
"file is built. One property that is always there is LOCATION";
}
diff --git a/Source/cmGetTargetPropertyCommand.h b/Source/cmGetTargetPropertyCommand.h
index fd89115..64ab8d3 100644
--- a/Source/cmGetTargetPropertyCommand.h
+++ b/Source/cmGetTargetPropertyCommand.h
@@ -36,7 +36,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "GET_TARGET_PROPERTY";}
+ virtual const char* GetName() { return "get_target_property";}
/**
* Succinct documentation.
@@ -52,10 +52,10 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " GET_TARGET_PROPERTY(VAR target property)\n"
+ " get_target_property(VAR target property)\n"
"Get a property from a target. The value of the property is "
"stored in the variable VAR. If the property is not found, VAR "
- "will be set to \"NOTFOUND\". Use SET_TARGET_PROPERTIES to set "
+ "will be set to \"NOTFOUND\". Use set_target_properties to set "
"property values. Properties are usually used to control how "
"a target is built.\n"
"The read-only property \"<CONFIG>_LOCATION\" provides the full "
diff --git a/Source/cmGetTestPropertyCommand.h b/Source/cmGetTestPropertyCommand.h
index 3009570..46588a4 100644
--- a/Source/cmGetTestPropertyCommand.h
+++ b/Source/cmGetTestPropertyCommand.h
@@ -36,7 +36,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "GET_TEST_PROPERTY";}
+ virtual const char* GetName() { return "get_test_property";}
/**
* Succinct documentation.
@@ -52,7 +52,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " GET_TEST_PROPERTY(test VAR property)\n"
+ " get_test_property(test VAR property)\n"
"Get a property from the Test. The value of the property is "
"stored in the variable VAR. If the property is not found, "
"CMake will report an error. For a list of standard properties "
diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h
index 7698595..9ba4434 100644
--- a/Source/cmIfCommand.h
+++ b/Source/cmIfCommand.h
@@ -73,7 +73,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "IF";}
+ virtual const char* GetName() { return "if";}
/**
* Succinct documentation.
@@ -94,78 +94,78 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " IF(expression)\n"
- " # THEN section.\n"
+ " if(expression)\n"
+ " # then section.\n"
" COMMAND1(ARGS ...)\n"
" COMMAND2(ARGS ...)\n"
" ...\n"
- " ELSEIF(expression2)\n"
- " # ELSEIF section.\n"
+ " elseif(expression2)\n"
+ " # elseif section.\n"
" COMMAND1(ARGS ...)\n"
" COMMAND2(ARGS ...)\n"
" ...\n"
- " ELSE(expression)\n"
- " # ELSE section.\n"
+ " else(expression)\n"
+ " # else section.\n"
" COMMAND1(ARGS ...)\n"
" COMMAND2(ARGS ...)\n"
" ...\n"
- " ENDIF(expression)\n"
+ " endif(expression)\n"
"Evaluates the given expression. If the result is true, the commands "
"in the THEN section are invoked. Otherwise, the commands in the "
- "ELSE section are invoked. The ELSEIF and ELSE sections are "
- "optional. You may have multiple ELSEIF clauses. Note that "
- "the same expression must be given to IF, and ENDIF. Long "
+ "else section are invoked. The elseif and else sections are "
+ "optional. You may have multiple elseif clauses. Note that "
+ "the same expression must be given to if, and endif. Long "
"expressions can be used and the order or precedence is that the "
"EXISTS, COMMAND, and DEFINED operators will be evaluated first. "
"Then any EQUAL, LESS, GREATER, STRLESS, STRGREATER, STREQUAL, MATCHES "
"will be evaluated. Then NOT operators and finally AND, OR operators "
"will be evaluated. Possible expressions are:\n"
- " IF(variable)\n"
+ " if(variable)\n"
"True if the variable's value is not empty, 0, N, NO, OFF, FALSE, "
"NOTFOUND, or <variable>-NOTFOUND.\n"
- " IF(NOT variable)\n"
+ " if(NOT variable)\n"
"True if the variable's value is empty, 0, N, NO, OFF, FALSE, "
"NOTFOUND, or <variable>-NOTFOUND.\n"
- " IF(variable1 AND variable2)\n"
+ " if(variable1 AND variable2)\n"
"True if both variables would be considered true individually.\n"
- " IF(variable1 OR variable2)\n"
+ " if(variable1 OR variable2)\n"
"True if either variable would be considered true individually.\n"
- " IF(COMMAND command-name)\n"
+ " if(COMMAND command-name)\n"
"True if the given name is a command that can be invoked.\n"
- " IF(EXISTS file-name)\n"
- " IF(EXISTS directory-name)\n"
+ " if(EXISTS file-name)\n"
+ " if(EXISTS directory-name)\n"
"True if the named file or directory exists. "
"Behavior is well-defined only for full paths.\n"
- " IF(file1 IS_NEWER_THAN file2)\n"
+ " if(file1 IS_NEWER_THAN file2)\n"
"True if file1 is newer than file2 or if one of the two files "
"doesn't exist. "
"Behavior is well-defined only for full paths.\n"
- " IF(IS_DIRECTORY directory-name)\n"
+ " if(IS_DIRECTORY directory-name)\n"
"True if the given name is a directory. "
"Behavior is well-defined only for full paths.\n"
- " IF(IS_ABSOLUTE path)\n"
+ " if(IS_ABSOLUTE path)\n"
"True if the given path is an absolute path.\n "
- " IF(variable MATCHES regex)\n"
- " IF(string MATCHES regex)\n"
+ " if(variable MATCHES regex)\n"
+ " if(string MATCHES regex)\n"
"True if the given string or variable's value matches the given "
"regular expression.\n"
- " IF(variable LESS number)\n"
- " IF(string LESS number)\n"
- " IF(variable GREATER number)\n"
- " IF(string GREATER number)\n"
- " IF(variable EQUAL number)\n"
- " IF(string EQUAL number)\n"
+ " if(variable LESS number)\n"
+ " if(string LESS number)\n"
+ " if(variable GREATER number)\n"
+ " if(string GREATER number)\n"
+ " if(variable EQUAL number)\n"
+ " if(string EQUAL number)\n"
"True if the given string or variable's value is a valid number and "
"the inequality or equality is true.\n"
- " IF(variable STRLESS string)\n"
- " IF(string STRLESS string)\n"
- " IF(variable STRGREATER string)\n"
- " IF(string STRGREATER string)\n"
- " IF(variable STREQUAL string)\n"
- " IF(string STREQUAL string)\n"
+ " if(variable STRLESS string)\n"
+ " if(string STRLESS string)\n"
+ " if(variable STRGREATER string)\n"
+ " if(string STRGREATER string)\n"
+ " if(variable STREQUAL string)\n"
+ " if(string STREQUAL string)\n"
"True if the given string or variable's value is lexicographically "
"less (or greater, or equal) than the string on the right.\n"
- " IF(DEFINED variable)\n"
+ " if(DEFINED variable)\n"
"True if the given variable is defined. It does not matter if the "
"variable is true or false just if it has been set.";
}
diff --git a/Source/cmIncludeCommand.h b/Source/cmIncludeCommand.h
index 428df0c..b6a21d9 100644
--- a/Source/cmIncludeCommand.h
+++ b/Source/cmIncludeCommand.h
@@ -52,7 +52,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "INCLUDE";}
+ virtual const char* GetName() {return "include";}
/**
* Succinct documentation.
@@ -68,11 +68,11 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " INCLUDE(file1 [OPTIONAL] [RESULT_VARIABLE <VAR>])\n"
- " INCLUDE(module [OPTIONAL] [RESULT_VARIABLE <VAR>])\n"
+ " include(file1 [OPTIONAL] [RESULT_VARIABLE <VAR>])\n"
+ " include(module [OPTIONAL] [RESULT_VARIABLE <VAR>])\n"
"Reads CMake listfile code from the given file. Commands in the file "
"are processed immediately as if they were written in place of the "
- "INCLUDE command. If OPTIONAL is present, then no error "
+ "include command. If OPTIONAL is present, then no error "
"is raised if the file does not exist. If RESULT_VARIABLE is given "
"the variable will be set to the full filename which "
"has been included or NOTFOUND if it failed.\n"
diff --git a/Source/cmIncludeDirectoryCommand.h b/Source/cmIncludeDirectoryCommand.h
index 4c0be37..7eaf870 100644
--- a/Source/cmIncludeDirectoryCommand.h
+++ b/Source/cmIncludeDirectoryCommand.h
@@ -45,7 +45,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "INCLUDE_DIRECTORIES";}
+ virtual const char* GetName() { return "include_directories";}
/**
* Succinct documentation.
@@ -61,11 +61,11 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " INCLUDE_DIRECTORIES([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)\n"
+ " include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)\n"
"Add the given directories to those searched by the compiler for "
"include files. By default the directories are appended onto "
"the current list of directories. This default behavior can be "
- "changed by setting CMAKE_INCLUDE_DIRECTORIES_BEFORE to ON. "
+ "changed by setting CMAKE_include_directories_BEFORE to ON. "
"By using BEFORE or AFTER you can select between appending and "
"prepending, independent from the default. "
"If the SYSTEM option is given the compiler will be told that the "
diff --git a/Source/cmIncludeExternalMSProjectCommand.h b/Source/cmIncludeExternalMSProjectCommand.h
index c597172..780ab04 100644
--- a/Source/cmIncludeExternalMSProjectCommand.h
+++ b/Source/cmIncludeExternalMSProjectCommand.h
@@ -46,7 +46,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "INCLUDE_EXTERNAL_MSPROJECT";}
+ virtual const char* GetName() {return "include_external_msproject";}
/**
* Succinct documentation.
@@ -62,7 +62,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " INCLUDE_EXTERNAL_MSPROJECT(projectname location\n"
+ " include_external_msproject(projectname location\n"
" dep1 dep2 ...)\n"
"Includes an external Microsoft project in the generated workspace "
"file. Currently does nothing on UNIX.";
diff --git a/Source/cmIncludeRegularExpressionCommand.h b/Source/cmIncludeRegularExpressionCommand.h
index 0c160d6..699574b 100644
--- a/Source/cmIncludeRegularExpressionCommand.h
+++ b/Source/cmIncludeRegularExpressionCommand.h
@@ -45,7 +45,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "INCLUDE_REGULAR_EXPRESSION";}
+ virtual const char* GetName() {return "include_regular_expression";}
/**
* Succinct documentation.
@@ -61,7 +61,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " INCLUDE_REGULAR_EXPRESSION(regex_match [regex_complain])\n"
+ " include_regular_expression(regex_match [regex_complain])\n"
"Set the regular expressions used in dependency checking. Only files "
"matching regex_match will be traced as dependencies. Only files "
"matching regex_complain will generate warnings if they cannot be "
diff --git a/Source/cmInstallCommand.h b/Source/cmInstallCommand.h
index 7afa866..d7b3f64 100644
--- a/Source/cmInstallCommand.h
+++ b/Source/cmInstallCommand.h
@@ -45,7 +45,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "INSTALL";}
+ virtual const char* GetName() { return "install";}
/**
* Succinct documentation.
@@ -97,7 +97,7 @@ public:
"file to be installed does not exist. "
"\n"
"The TARGETS signature:\n"
- " INSTALL(TARGETS targets...\n"
+ " install(TARGETS targets...\n"
" [[ARCHIVE|LIBRARY|RUNTIME]\n"
" [DESTINATION <dir>]\n"
" [PERMISSIONS permissions...]\n"
@@ -130,11 +130,11 @@ public:
"to the TARGETS form of this command. A target may be installed more "
"than once to different locations. Consider hypothetical "
"targets \"myExe\", \"mySharedLib\", and \"myStaticLib\". The code\n"
- " INSTALL(TARGETS myExe mySharedLib myStaticLib\n"
+ " install(TARGETS myExe mySharedLib myStaticLib\n"
" RUNTIME DESTINATION bin\n"
" LIBRARY DESTINATION lib\n"
" ARCHIVE DESTINATION lib/static)\n"
- " INSTALL(TARGETS mySharedLib DESTINATION /some/full/path)\n"
+ " install(TARGETS mySharedLib DESTINATION /some/full/path)\n"
"will install myExe to <prefix>/bin and myStaticLib to "
"<prefix>/lib/static. "
"On non-DLL platforms mySharedLib will be installed to <prefix>/lib "
@@ -148,7 +148,7 @@ public:
"undefined behavior."
"\n"
"The FILES signature:\n"
- " INSTALL(FILES files... DESTINATION <dir>\n"
+ " install(FILES files... DESTINATION <dir>\n"
" [PERMISSIONS permissions...]\n"
" [CONFIGURATIONS [Debug|Release|...]]\n"
" [COMPONENT <component>]\n"
@@ -160,7 +160,7 @@ public:
"GROUP_READ, and WORLD_READ if no PERMISSIONS argument is given."
"\n"
"The PROGRAMS signature:\n"
- " INSTALL(PROGRAMS files... DESTINATION <dir>\n"
+ " install(PROGRAMS files... DESTINATION <dir>\n"
" [PERMISSIONS permissions...]\n"
" [CONFIGURATIONS [Debug|Release|...]]\n"
" [COMPONENT <component>]\n"
@@ -173,7 +173,7 @@ public:
"built within the project."
"\n"
"The DIRECTORY signature:\n"
- " INSTALL(DIRECTORY dirs... DESTINATION <dir>\n"
+ " install(DIRECTORY dirs... DESTINATION <dir>\n"
" [FILE_PERMISSIONS permissions...]\n"
" [DIRECTORY_PERMISSIONS permissions...]\n"
" [USE_SOURCE_PERMISSIONS]\n"
@@ -214,7 +214,7 @@ public:
"The PERMISSIONS option overrides the permissions setting for the "
"matched file or directory. "
"For example the code\n"
- " INSTALL(DIRECTORY icons scripts/ DESTINATION share/myproj\n"
+ " install(DIRECTORY icons scripts/ DESTINATION share/myproj\n"
" PATTERN \"CVS\" EXCLUDE\n"
" PATTERN \"scripts/*\"\n"
" PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ\n"
@@ -225,14 +225,14 @@ public:
"any CVS directories will be excluded."
"\n"
"The SCRIPT and CODE signature:\n"
- " INSTALL([[SCRIPT <file>] [CODE <code>]] [...])\n"
+ " install([[SCRIPT <file>] [CODE <code>]] [...])\n"
"The SCRIPT form will invoke the given CMake script files during "
"installation. If the script file name is a relative path "
"it will be interpreted with respect to the current source directory. "
"The CODE form will invoke the given CMake code during installation. "
"Code is specified as a single argument inside a double-quoted string. "
"For example, the code\n"
- " INSTALL(CODE \"MESSAGE(\\\"Sample install message.\\\")\")\n"
+ " install(CODE \"MESSAGE(\\\"Sample install message.\\\")\")\n"
"will print a message during installation.\n"
"NOTE: This command supercedes the INSTALL_TARGETS command and the "
"target properties PRE_INSTALL_SCRIPT and POST_INSTALL_SCRIPT. "
diff --git a/Source/cmInstallFilesCommand.h b/Source/cmInstallFilesCommand.h
index 357f343..7885d18 100644
--- a/Source/cmInstallFilesCommand.h
+++ b/Source/cmInstallFilesCommand.h
@@ -45,14 +45,14 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "INSTALL_FILES";}
+ virtual const char* GetName() { return "install_files";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
- return "Deprecated. Use the INSTALL(FILES ) command instead.";
+ return "Deprecated. Use the install(FILES ) command instead.";
}
/**
@@ -69,12 +69,12 @@ public:
virtual const char* GetFullDocumentation()
{
return
- "This command has been superceded by the INSTALL command. It "
+ "This command has been superceded by the install command. It "
"is provided for compatibility with older CMake code. "
"The FILES form is directly replaced by the FILES form of the "
- "INSTALL command. The regexp form can be expressed "
- "more clearly using the GLOB form of the FILE command.\n"
- " INSTALL_FILES(<dir> extension file file ...)\n"
+ "install command. The regexp form can be expressed "
+ "more clearly using the GLOB form of the file command.\n"
+ " install_files(<dir> extension file file ...)\n"
"Create rules to install the listed files with the given extension "
"into the given directory. "
"Only files existing in the current source tree or its corresponding "
@@ -83,10 +83,10 @@ public:
"removed first. This is useful for providing lists of source files "
"such as foo.cxx when you want the corresponding foo.h to be "
"installed. A typical extension is '.h'.\n"
- " INSTALL_FILES(<dir> regexp)\n"
+ " install_files(<dir> regexp)\n"
"Any files in the current source directory that match the regular "
"expression will be installed.\n"
- " INSTALL_FILES(<dir> FILES file file ...)\n"
+ " install_files(<dir> FILES file file ...)\n"
"Any files listed after the FILES keyword will be "
"installed explicitly from the names given. Full paths are allowed in "
"this form.\n"
diff --git a/Source/cmInstallProgramsCommand.h b/Source/cmInstallProgramsCommand.h
index 6b085f5..81800ef 100644
--- a/Source/cmInstallProgramsCommand.h
+++ b/Source/cmInstallProgramsCommand.h
@@ -45,14 +45,14 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "INSTALL_PROGRAMS";}
+ virtual const char* GetName() { return "install_programs";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
- return "Deprecated. Use the INSTALL(PROGRAMS ) command instead.";
+ return "Deprecated. Use the install(PROGRAMS ) command instead.";
}
/**
@@ -69,17 +69,17 @@ public:
virtual const char* GetFullDocumentation()
{
return
- "This command has been superceded by the INSTALL command. It "
+ "This command has been superceded by the install command. It "
"is provided for compatibility with older CMake code. "
"The FILES form is directly replaced by the PROGRAMS form of the "
"INSTALL command. The regexp form can be expressed more clearly "
"using the GLOB form of the FILE command.\n"
- " INSTALL_PROGRAMS(<dir> file1 file2 [file3 ...])\n"
- " INSTALL_PROGRAMS(<dir> FILES file1 [file2 ...])\n"
+ " install_programs(<dir> file1 file2 [file3 ...])\n"
+ " install_programs(<dir> FILES file1 [file2 ...])\n"
"Create rules to install the listed programs into the given directory. "
"Use the FILES argument to guarantee that the file list version of "
"the command will be used even when there is only one argument.\n"
- " INSTALL_PROGRAMS(<dir> regexp)\n"
+ " install_programs(<dir> regexp)\n"
"In the second form any program in the current source directory that "
"matches the regular expression will be installed.\n"
"This command is intended to install programs that are not built "
diff --git a/Source/cmInstallTargetsCommand.h b/Source/cmInstallTargetsCommand.h
index 59d68f3..e98b831 100644
--- a/Source/cmInstallTargetsCommand.h
+++ b/Source/cmInstallTargetsCommand.h
@@ -46,14 +46,14 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "INSTALL_TARGETS";}
+ virtual const char* GetName() { return "install_targets";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
- return "Deprecated. Use the INSTALL(TARGETS ) command instead.";
+ return "Deprecated. Use the install(TARGETS ) command instead.";
}
/**
@@ -62,9 +62,9 @@ public:
virtual const char* GetFullDocumentation()
{
return
- "This command has been superceded by the INSTALL command. It "
+ "This command has been superceded by the install command. It "
"is provided for compatibility with older CMake code.\n"
- " INSTALL_TARGETS(<dir> [RUNTIME_DIRECTORY dir] target target)\n"
+ " install_targets(<dir> [RUNTIME_DIRECTORY dir] target target)\n"
"Create rules to install the listed targets into the given directory. "
"The directory <dir> is relative to the installation prefix, which "
"is stored in the variable CMAKE_INSTALL_PREFIX. If RUNTIME_DIRECTORY "
diff --git a/Source/cmLinkDirectoriesCommand.h b/Source/cmLinkDirectoriesCommand.h
index cb88cd9..cef13be 100644
--- a/Source/cmLinkDirectoriesCommand.h
+++ b/Source/cmLinkDirectoriesCommand.h
@@ -47,7 +47,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "LINK_DIRECTORIES";}
+ virtual const char* GetName() { return "link_directories";}
/**
* Succinct documentation.
@@ -63,7 +63,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " LINK_DIRECTORIES(directory1 directory2 ...)\n"
+ " link_directories(directory1 directory2 ...)\n"
"Specify the paths in which the linker should search for libraries.";
}
diff --git a/Source/cmLinkLibrariesCommand.h b/Source/cmLinkLibrariesCommand.h
index 9e860e9..a7e9962 100644
--- a/Source/cmLinkLibrariesCommand.h
+++ b/Source/cmLinkLibrariesCommand.h
@@ -46,14 +46,14 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "LINK_LIBRARIES";}
+ virtual const char* GetName() { return "link_libraries";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
- return "Deprecated. Use the TARGET_LINK_LIBRARIES() command instead.";
+ return "Deprecated. Use the target_link_libraries() command instead.";
}
/**
@@ -63,10 +63,10 @@ public:
{
return
"Link libraries to all targets added later.\n"
- " LINK_LIBRARIES(library1 <debug | optimized> library2 ...)\n"
+ " link_libraries(library1 <debug | optimized> library2 ...)\n"
"Specify a list of libraries to be linked into "
- "any following targets (typically added with the ADD_EXECUTABLE "
- "or ADD_LIBRARY calls). This command is passed "
+ "any following targets (typically added with the add_executable "
+ "or add_library calls). This command is passed "
"down to all subdirectories. "
"The debug and optimized strings may be used to indicate that "
"the next library listed is to be used only for that specific "
diff --git a/Source/cmListCommand.h b/Source/cmListCommand.h
index a99604b..735a41b 100644
--- a/Source/cmListCommand.h
+++ b/Source/cmListCommand.h
@@ -48,7 +48,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "LIST";}
+ virtual const char* GetName() { return "list";}
/**
* Succinct documentation.
@@ -64,16 +64,16 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " LIST(LENGTH <list> <output variable>)\n"
- " LIST(GET <list> <element index> [<element index> ...] "
+ " list(LENGTH <list> <output variable>)\n"
+ " list(GET <list> <element index> [<element index> ...] "
"<output variable>)\n"
- " LIST(APPEND <list> <element> [<element> ...])\n"
- " LIST(FIND <list> <value> <output variable>)\n"
- " LIST(INSERT <list> <element_index> <element> [<element> ...])\n"
- " LIST(REMOVE_ITEM <list> <value> [<value> ...])\n"
- " LIST(REMOVE_AT <list> <index> [<index> ...])\n"
- " LIST(REVERSE <list>)\n"
- " LIST(SORT <list>)\n"
+ " list(APPEND <list> <element> [<element> ...])\n"
+ " list(FIND <list> <value> <output variable>)\n"
+ " list(INSERT <list> <element_index> <element> [<element> ...])\n"
+ " list(REMOVE_ITEM <list> <value> [<value> ...])\n"
+ " list(REMOVE_AT <list> <index> [<index> ...])\n"
+ " list(REVERSE <list>)\n"
+ " list(SORT <list>)\n"
"LENGTH will return a given list's length.\n"
"GET will return list of elements specified by indices from the list.\n"
"APPEND will append elements to the list.\n"
diff --git a/Source/cmLoadCacheCommand.h b/Source/cmLoadCacheCommand.h
index f752c95..e19c35b 100644
--- a/Source/cmLoadCacheCommand.h
+++ b/Source/cmLoadCacheCommand.h
@@ -44,7 +44,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "LOAD_CACHE";}
+ virtual const char* GetName() { return "load_cache";}
/**
* Succinct documentation.
@@ -60,13 +60,13 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " LOAD_CACHE(pathToCacheFile READ_WITH_PREFIX\n"
+ " load_cache(pathToCacheFile READ_WITH_PREFIX\n"
" prefix entry1...)\n"
"Read the cache and store the requested entries in variables with "
"their name prefixed with the given prefix. "
"This only reads the values, and does not create entries in the local "
"project's cache.\n"
- " LOAD_CACHE(pathToCacheFile [EXCLUDE entry1...]\n"
+ " load_cache(pathToCacheFile [EXCLUDE entry1...]\n"
" [INCLUDE_INTERNALS entry1...])\n"
"Load in the values from another cache and store them in the local "
"project's cache as internal entries. This is useful for a project "
diff --git a/Source/cmLoadCommandCommand.h b/Source/cmLoadCommandCommand.h
index 76aca9e..e63b9f1 100644
--- a/Source/cmLoadCommandCommand.h
+++ b/Source/cmLoadCommandCommand.h
@@ -44,7 +44,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "LOAD_COMMAND";}
+ virtual const char* GetName() {return "load_command";}
/**
* Succinct documentation.
@@ -60,7 +60,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " LOAD_COMMAND(COMMAND_NAME <loc1> [loc2 ...])\n"
+ " load_command(COMMAND_NAME <loc1> [loc2 ...])\n"
"The given locations are searched for a library whose name is "
"cmCOMMAND_NAME. If found, it is loaded as a module and the command "
"is added to the set of available CMake commands. Usually, "
diff --git a/Source/cmMacroCommand.h b/Source/cmMacroCommand.h
index d93bdd8..f0df9c4 100644
--- a/Source/cmMacroCommand.h
+++ b/Source/cmMacroCommand.h
@@ -69,7 +69,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "MACRO";}
+ virtual const char* GetName() { return "macro";}
/**
* Succinct documentation.
@@ -85,14 +85,14 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " MACRO(<name> [arg1 [arg2 [arg3 ...]]])\n"
+ " macro(<name> [arg1 [arg2 [arg3 ...]]])\n"
" COMMAND1(ARGS ...)\n"
" COMMAND2(ARGS ...)\n"
" ...\n"
- " ENDMACRO(<name>)\n"
+ " endmacro(<name>)\n"
"Define a macro named <name> that takes arguments named "
- "arg1 arg2 arg3 (...). Commands listed after MACRO, "
- "but before the matching ENDMACRO, are not invoked until the macro "
+ "arg1 arg2 arg3 (...). Commands listed after macro, "
+ "but before the matching endmacro, are not invoked until the macro "
"is invoked. When it is invoked, the commands recorded in the "
"macro are first modified by replacing formal parameters (${arg1}) "
"with the arguments passed, and then invoked as normal commands. In "
diff --git a/Source/cmMakeDirectoryCommand.h b/Source/cmMakeDirectoryCommand.h
index f43c943..db6b113 100644
--- a/Source/cmMakeDirectoryCommand.h
+++ b/Source/cmMakeDirectoryCommand.h
@@ -48,7 +48,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "MAKE_DIRECTORY";}
+ virtual const char* GetName() { return "make_directory";}
/**
* This determines if the command is invoked when in script mode.
@@ -60,7 +60,7 @@ public:
*/
virtual const char* GetTerseDocumentation()
{
- return "Deprecated. Use the FILE(MAKE_DIRECTORY ) command instead.";
+ return "Deprecated. Use the file(MAKE_DIRECTORY ) command instead.";
}
/**
@@ -69,7 +69,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " MAKE_DIRECTORY(directory)\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.";
diff --git a/Source/cmMarkAsAdvancedCommand.h b/Source/cmMarkAsAdvancedCommand.h
index de267c9..7388285 100644
--- a/Source/cmMarkAsAdvancedCommand.h
+++ b/Source/cmMarkAsAdvancedCommand.h
@@ -44,7 +44,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "MARK_AS_ADVANCED";}
+ virtual const char* GetName() {return "mark_as_advanced";}
/**
* Succinct documentation.
@@ -60,7 +60,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " MARK_AS_ADVANCED([CLEAR|FORCE] VAR VAR2 VAR...)\n"
+ " mark_as_advanced([CLEAR|FORCE] VAR VAR2 VAR...)\n"
"Mark the named cached variables as advanced. An advanced variable "
"will not be displayed in any of the cmake GUIs unless the show "
"advanced option is on. "
@@ -75,7 +75,7 @@ public:
/**
* This determines if the command is invoked when in script mode.
- * MARK_AS_ADVANCED() will have no effect in script mode, but this will
+ * mark_as_advanced() will have no effect in script mode, but this will
* make many of the modules usable in cmake/ctest scripts, (among them
* FindUnixMake.cmake used by the CTEST_BUILD command.
*/
diff --git a/Source/cmMathCommand.h b/Source/cmMathCommand.h
index 81fb57c..9f0d23c 100644
--- a/Source/cmMathCommand.h
+++ b/Source/cmMathCommand.h
@@ -48,7 +48,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "MATH";}
+ virtual const char* GetName() { return "math";}
/**
* Succinct documentation.
@@ -64,7 +64,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " MATH(EXPR <output variable> <math expression>)\n"
+ " math(EXPR <output variable> <math expression>)\n"
"EXPR evaluates mathematical expression and return result in the "
"output variable. Example mathematical expression is "
"'5 * ( 10 + 13 )'. Supported operators are "
diff --git a/Source/cmMessageCommand.h b/Source/cmMessageCommand.h
index 6206124..02c5c23 100644
--- a/Source/cmMessageCommand.h
+++ b/Source/cmMessageCommand.h
@@ -43,7 +43,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "MESSAGE";}
+ virtual const char* GetName() { return "message";}
/**
* This determines if the command is invoked when in script mode.
@@ -64,7 +64,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " MESSAGE([SEND_ERROR | STATUS | FATAL_ERROR]\n"
+ " message([SEND_ERROR | STATUS | FATAL_ERROR]\n"
" \"message to display\" ...)\n"
"By default the message is displayed in a pop up window (CMakeSetup), "
"or in the stdout of cmake, or the error section of ccmake. "
diff --git a/Source/cmOptionCommand.h b/Source/cmOptionCommand.h
index 9c6d99d..f1d01b6 100644
--- a/Source/cmOptionCommand.h
+++ b/Source/cmOptionCommand.h
@@ -44,7 +44,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "OPTION";}
+ virtual const char* GetName() {return "option";}
/**
* Succinct documentation.
@@ -60,7 +60,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " OPTION(OPTION_VAR \"help string describing option\"\n"
+ " option(OPTION_VAR \"help string describing option\"\n"
" [initial value])\n"
"Provide an option for the user to select as ON or OFF. If no "
"initial value is provided, OFF is used.";
diff --git a/Source/cmOutputRequiredFilesCommand.h b/Source/cmOutputRequiredFilesCommand.h
index 338b271..da18446 100644
--- a/Source/cmOutputRequiredFilesCommand.h
+++ b/Source/cmOutputRequiredFilesCommand.h
@@ -46,7 +46,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "OUTPUT_REQUIRED_FILES";}
+ virtual const char* GetName() { return "output_required_files";}
/**
* Succinct documentation.
@@ -63,7 +63,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " OUTPUT_REQUIRED_FILES(srcfile outputfile)\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 "
diff --git a/Source/cmProjectCommand.h b/Source/cmProjectCommand.h
index bd5aa20..11e297e 100644
--- a/Source/cmProjectCommand.h
+++ b/Source/cmProjectCommand.h
@@ -47,7 +47,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "PROJECT";}
+ virtual const char* GetName() {return "project";}
/**
* Succinct documentation.
@@ -63,7 +63,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " PROJECT(projectname [CXX] [C] [Java])\n"
+ " project(projectname [CXX] [C] [Java])\n"
"Sets the name of the project. "
"This creates the variables projectname_BINARY_DIR and "
"projectname_SOURCE_DIR. "
diff --git a/Source/cmQTWrapCPPCommand.h b/Source/cmQTWrapCPPCommand.h
index 79d729b..785b07c 100644
--- a/Source/cmQTWrapCPPCommand.h
+++ b/Source/cmQTWrapCPPCommand.h
@@ -49,7 +49,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "QT_WRAP_CPP";}
+ virtual const char* GetName() { return "qt_wrap_cpp";}
/**
* Succinct documentation.
@@ -65,7 +65,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " QT_WRAP_CPP(resultingLibraryName DestName\n"
+ " qt_wrap_cpp(resultingLibraryName DestName\n"
" SourceLists ...)\n"
"Produce moc files for all the .h files listed in the SourceLists. "
"The moc files will be added to the library using the DestName "
diff --git a/Source/cmQTWrapUICommand.h b/Source/cmQTWrapUICommand.h
index e9a9354..1682b0c 100644
--- a/Source/cmQTWrapUICommand.h
+++ b/Source/cmQTWrapUICommand.h
@@ -47,7 +47,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "QT_WRAP_UI";}
+ virtual const char* GetName() { return "qt_wrap_ui";}
/**
* Succinct documentation.
@@ -63,7 +63,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " QT_WRAP_UI(resultingLibraryName HeadersDestName\n"
+ " qt_wrap_ui(resultingLibraryName HeadersDestName\n"
" SourcesDestName SourceLists ...)\n"
"Produce .h and .cxx files for all the .ui files listed "
"in the SourceLists. "
diff --git a/Source/cmRemoveCommand.h b/Source/cmRemoveCommand.h
index 04bf314..10766a9 100644
--- a/Source/cmRemoveCommand.h
+++ b/Source/cmRemoveCommand.h
@@ -49,14 +49,14 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "REMOVE";}
+ virtual const char* GetName() {return "remove";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
- return "Deprecated. Use the LIST(REMOVE_ITEM ) command instead.";
+ return "Deprecated. Use the list(REMOVE_ITEM ) command instead.";
}
/**
@@ -65,7 +65,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " REMOVE(VAR VALUE VALUE ...)\n"
+ " remove(VAR VALUE VALUE ...)\n"
"Removes VALUE from the variable VAR. "
"This is typically used to remove entries from a vector "
"(e.g. semicolon separated list). VALUE is expanded.";
diff --git a/Source/cmRemoveDefinitionsCommand.h b/Source/cmRemoveDefinitionsCommand.h
index 1bd7c01..2444ab0 100644
--- a/Source/cmRemoveDefinitionsCommand.h
+++ b/Source/cmRemoveDefinitionsCommand.h
@@ -46,7 +46,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "REMOVE_DEFINITIONS";}
+ virtual const char* GetName() {return "remove_definitions";}
/**
* Succinct documentation.
@@ -63,7 +63,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " REMOVE_DEFINITIONS(-DFOO -DBAR ...)\n"
+ " remove_definitions(-DFOO -DBAR ...)\n"
"Removes flags from command line of C and C++ compilers. "
"This command can be used to remove any flag from a compile line, "
"but the -D flag is accepted by most C/C++ compilers. "
diff --git a/Source/cmSeparateArgumentsCommand.h b/Source/cmSeparateArgumentsCommand.h
index a86b704..0bc87ef 100644
--- a/Source/cmSeparateArgumentsCommand.h
+++ b/Source/cmSeparateArgumentsCommand.h
@@ -49,7 +49,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "SEPARATE_ARGUMENTS";}
+ virtual const char* GetName() {return "separate_arguments";}
/**
* Succinct documentation.
@@ -66,7 +66,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " SEPARATE_ARGUMENTS(VARIABLE)\n"
+ " separate_arguments(VARIABLE)\n"
"Convert the value of VARIABLE to a semi-colon separated list. "
"All spaces are replaced with ';'. This helps with generating "
"command lines.";
diff --git a/Source/cmSetCommand.h b/Source/cmSetCommand.h
index c73968f..73d7f0f 100644
--- a/Source/cmSetCommand.h
+++ b/Source/cmSetCommand.h
@@ -49,7 +49,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "SET";}
+ virtual const char* GetName() {return "set";}
/**
* Succinct documentation.
@@ -65,7 +65,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " SET(VAR [VALUE] [CACHE TYPE DOCSTRING [FORCE]])\n"
+ " set(VAR [VALUE] [CACHE TYPE DOCSTRING [FORCE]])\n"
"Within CMake sets VAR to the value VALUE. VALUE is expanded before "
"VAR is set to it. If CACHE is present, then the VAR is put in the "
"cache. TYPE and DOCSTRING are required. TYPE is used by the CMake GUI "
@@ -81,10 +81,10 @@ public:
"variable, then this always writes into the current makefile. The "
"FORCE option will overwrite the cache value removing any changes by "
"the user.\n"
- " SET(VAR VALUE1 ... VALUEN).\n"
+ " set(VAR VALUE1 ... VALUEN).\n"
"In this case VAR is set to a semicolon separated list of values.\n"
"VAR can be an environment variable such as:\n"
- " SET( ENV{PATH} /home/martink )\n"
+ " set( ENV{PATH} /home/martink )\n"
"in which case the environment variable will be set.";
}
diff --git a/Source/cmSetDirectoryPropertiesCommand.h b/Source/cmSetDirectoryPropertiesCommand.h
index 143ceb3..039f21a 100644
--- a/Source/cmSetDirectoryPropertiesCommand.h
+++ b/Source/cmSetDirectoryPropertiesCommand.h
@@ -41,7 +41,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "SET_DIRECTORY_PROPERTIES";}
+ virtual const char* GetName() { return "set_directory_properties";}
/**
* Succinct documentation.
@@ -65,7 +65,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " SET_DIRECTORY_PROPERTIES(PROPERTIES prop1 value1 prop2 value2)\n"
+ " set_directory_properties(PROPERTIES prop1 value1 prop2 value2)\n"
"Set a property for the current directory and subdirectories. If the "
"property is not found, CMake will report an error. The properties "
"include: INCLUDE_DIRECTORIES, LINK_DIRECTORIES, "
diff --git a/Source/cmSetPropertiesCommand.h b/Source/cmSetPropertiesCommand.h
index 79c9394..ce85cbd 100644
--- a/Source/cmSetPropertiesCommand.h
+++ b/Source/cmSetPropertiesCommand.h
@@ -36,7 +36,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "SET_PROPERTIES";}
+ virtual const char* GetName() { return "set_properties";}
/**
* Succinct documentation.
@@ -52,7 +52,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " SET_PROPERTIES(scope_value\n"
+ " set_properties(scope_value\n"
" PROPERTIES prop1 value1\n"
" prop2 value2 ...)\n"
"Set properties on something. The scope_value is either GLOBAL, "
diff --git a/Source/cmSetSourceFilesPropertiesCommand.h b/Source/cmSetSourceFilesPropertiesCommand.h
index d246d24..fad76ee 100644
--- a/Source/cmSetSourceFilesPropertiesCommand.h
+++ b/Source/cmSetSourceFilesPropertiesCommand.h
@@ -36,7 +36,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "SET_SOURCE_FILES_PROPERTIES";}
+ virtual const char* GetName() { return "set_source_files_properties";}
/**
* Succinct documentation.
@@ -52,7 +52,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " SET_SOURCE_FILES_PROPERTIES(file1 file2 ...\n"
+ " set_source_files_properties(file1 file2 ...\n"
" PROPERTIES prop1 value1\n"
" prop2 value2 ...)\n"
"Set properties on a file. The syntax for the command is to list all "
diff --git a/Source/cmSetTargetPropertiesCommand.h b/Source/cmSetTargetPropertiesCommand.h
index c25895c..bc48a70 100644
--- a/Source/cmSetTargetPropertiesCommand.h
+++ b/Source/cmSetTargetPropertiesCommand.h
@@ -36,7 +36,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "SET_TARGET_PROPERTIES";}
+ virtual const char* GetName() { return "set_target_properties";}
/**
* Succinct documentation.
@@ -59,7 +59,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " SET_TARGET_PROPERTIES(target1 target2 ...\n"
+ " set_target_properties(target1 target2 ...\n"
" PROPERTIES prop1 value1\n"
" prop2 value2 ...)\n"
"Set properties on a target. The syntax for the command is to "
diff --git a/Source/cmSetTestsPropertiesCommand.h b/Source/cmSetTestsPropertiesCommand.h
index 16b5188..8717d90 100644
--- a/Source/cmSetTestsPropertiesCommand.h
+++ b/Source/cmSetTestsPropertiesCommand.h
@@ -36,7 +36,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "SET_TESTS_PROPERTIES";}
+ virtual const char* GetName() { return "set_tests_properties";}
/**
* Succinct documentation.
@@ -52,7 +52,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " SET_TESTS_PROPERTIES(test1 [test2...] PROPERTIES prop1 value1 prop2"
+ " set_tests_properties(test1 [test2...] PROPERTIES prop1 value1 prop2"
" value2)\n"
"Set a property for the tests. If the property is not found, CMake "
"will report an error. The properties include:\n"
diff --git a/Source/cmSiteNameCommand.h b/Source/cmSiteNameCommand.h
index 465aeda..7c03268 100644
--- a/Source/cmSiteNameCommand.h
+++ b/Source/cmSiteNameCommand.h
@@ -49,7 +49,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "SITE_NAME";}
+ virtual const char* GetName() {return "site_name";}
/**
* Succinct documentation.
@@ -65,7 +65,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " SITE_NAME(variable)\n";
+ " site_name(variable)\n";
}
cmTypeMacro(cmSiteNameCommand, cmCommand);
diff --git a/Source/cmSourceGroupCommand.h b/Source/cmSourceGroupCommand.h
index 0b95605..5d56bf7 100644
--- a/Source/cmSourceGroupCommand.h
+++ b/Source/cmSourceGroupCommand.h
@@ -45,7 +45,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() {return "SOURCE_GROUP";}
+ virtual const char* GetName() {return "source_group";}
/**
* Succinct documentation.
@@ -61,7 +61,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " SOURCE_GROUP(name [REGULAR_EXPRESSION regex] "
+ " source_group(name [REGULAR_EXPRESSION regex] "
"[FILES src1 src2 ...])\n"
"Defines a group into which sources will be placed in project files. "
"This is mainly used to setup file tabs in Visual Studio. "
@@ -71,10 +71,10 @@ public:
"group explicitly lists the file, the LAST group whose regular "
"expression matches the file will be favored.\n"
"The name of the group may contain backslashes to specify subgroups:\n"
- " SOURCE_GROUP(outer\\\\inner ...)\n"
+ " source_group(outer\\\\inner ...)\n"
"For backwards compatibility, this command is also supports the "
"format:\n"
- " SOURCE_GROUP(name regex)";
+ " source_group(name regex)";
}
cmTypeMacro(cmSourceGroupCommand, cmCommand);
diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h
index 78ddcea..6a415d4 100644
--- a/Source/cmStringCommand.h
+++ b/Source/cmStringCommand.h
@@ -54,7 +54,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "STRING";}
+ virtual const char* GetName() { return "string";}
/**
* Succinct documentation.
@@ -70,29 +70,29 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " STRING(REGEX MATCH <regular_expression>\n"
+ " string(REGEX MATCH <regular_expression>\n"
" <output variable> <input> [<input>...])\n"
- " STRING(REGEX MATCHALL <regular_expression>\n"
+ " string(REGEX MATCHALL <regular_expression>\n"
" <output variable> <input> [<input>...])\n"
- " STRING(REGEX REPLACE <regular_expression>\n"
+ " string(REGEX REPLACE <regular_expression>\n"
" <replace_expression> <output variable>\n"
" <input> [<input>...])\n"
- " STRING(REPLACE <match_string>\n"
+ " string(REPLACE <match_string>\n"
" <replace_string> <output variable>\n"
" <input> [<input>...])\n"
- " STRING(COMPARE EQUAL <string1> <string2> <output variable>)\n"
- " STRING(COMPARE NOTEQUAL <string1> <string2> <output variable>)\n"
- " STRING(COMPARE LESS <string1> <string2> <output variable>)\n"
- " STRING(COMPARE GREATER <string1> <string2> <output variable>)\n"
- " STRING(ASCII <number> [<number> ...] <output variable>)\n"
- " STRING(CONFIGURE <string1> <output variable>\n"
+ " string(COMPARE EQUAL <string1> <string2> <output variable>)\n"
+ " string(COMPARE NOTEQUAL <string1> <string2> <output variable>)\n"
+ " string(COMPARE LESS <string1> <string2> <output variable>)\n"
+ " string(COMPARE GREATER <string1> <string2> <output variable>)\n"
+ " string(ASCII <number> [<number> ...] <output variable>)\n"
+ " string(CONFIGURE <string1> <output variable>\n"
" [@ONLY] [ESCAPE_QUOTES])\n"
- " STRING(TOUPPER <string1> <output variable>)\n"
- " STRING(TOLOWER <string1> <output variable>)\n"
- " STRING(LENGTH <string> <output variable>)\n"
- " STRING(SUBSTRING <string> <begin> <length> <output variable>)\n"
- " STRING(STRIP <string> <output variable>)\n"
- " STRING(RANDOM [LENGTH <length>] [ALPHABET <alphabet>]\n"
+ " string(TOUPPER <string1> <output variable>)\n"
+ " string(TOLOWER <string1> <output variable>)\n"
+ " string(LENGTH <string> <output variable>)\n"
+ " string(SUBSTRING <string> <begin> <length> <output variable>)\n"
+ " string(STRIP <string> <output variable>)\n"
+ " string(RANDOM [LENGTH <length>] [ALPHABET <alphabet>]\n"
" <output variable>)\n"
"REGEX MATCH will match the regular expression once and store the "
"match in the output variable.\n"
diff --git a/Source/cmSubdirCommand.h b/Source/cmSubdirCommand.h
index d46edd7..bf21ab5 100644
--- a/Source/cmSubdirCommand.h
+++ b/Source/cmSubdirCommand.h
@@ -46,14 +46,14 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "SUBDIRS";}
+ virtual const char* GetName() { return "subdirs";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
- return "Deprecated. Use the ADD_SUBDIRECTORY() command instead.";
+ return "Deprecated. Use the add_subdirectory() command instead.";
}
/**
@@ -63,10 +63,10 @@ public:
{
return
"Add a list of subdirectories to the build.\n"
- " SUBDIRS(dir1 dir2 ..."
+ " subdirs(dir1 dir2 ..."
"[EXCLUDE_FROM_ALL exclude_dir1 exclude_dir2 ...] [PREORDER] )\n"
- "Add a list of subdirectories to the build. The ADD_SUBDIRECTORY "
- "command should be used instead of SUBDIRS although SUBDIRS will "
+ "Add a list of subdirectories to the build. The add_subdirectory "
+ "command should be used instead of subdirs although subdirs will "
"still work. "
"This will cause any CMakeLists.txt files in the sub directories "
"to be processed by CMake. Any directories after the PREORDER flag "
diff --git a/Source/cmSubdirDependsCommand.h b/Source/cmSubdirDependsCommand.h
index 4412f4a..4a1ca22 100644
--- a/Source/cmSubdirDependsCommand.h
+++ b/Source/cmSubdirDependsCommand.h
@@ -46,7 +46,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "SUBDIR_DEPENDS";}
+ virtual const char* GetName() { return "subdir_depends";}
/**
* Succinct documentation.
@@ -62,7 +62,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " SUBDIR_DEPENDS(subdir dep1 dep2 ...)\n"
+ " subdir_depends(subdir dep1 dep2 ...)\n"
"Does not do anything. This command used to help projects order "
"parallel builds correctly. This functionality is now automatic.";
}
diff --git a/Source/cmTargetLinkLibrariesCommand.h b/Source/cmTargetLinkLibrariesCommand.h
index 4d08c33..d84faa6 100644
--- a/Source/cmTargetLinkLibrariesCommand.h
+++ b/Source/cmTargetLinkLibrariesCommand.h
@@ -46,7 +46,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "TARGET_LINK_LIBRARIES";}
+ virtual const char* GetName() { return "target_link_libraries";}
/**
* Succinct documentation.
@@ -63,7 +63,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " TARGET_LINK_LIBRARIES(target library1\n"
+ " target_link_libraries(target library1\n"
" <debug | optimized | general> library2\n"
" ...)\n"
"Specify a list of libraries to be linked into the specified target. "
diff --git a/Source/cmTryCompileCommand.h b/Source/cmTryCompileCommand.h
index 12e24be..fecefe1 100644
--- a/Source/cmTryCompileCommand.h
+++ b/Source/cmTryCompileCommand.h
@@ -44,7 +44,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "TRY_COMPILE";}
+ virtual const char* GetName() { return "try_compile";}
/**
* Succinct documentation.
@@ -59,7 +59,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " TRY_COMPILE(RESULT_VAR bindir srcdir\n"
+ " try_compile(RESULT_VAR bindir srcdir\n"
" projectName <targetname> [CMAKE_FLAGS <Flags>]\n"
" [OUTPUT_VARIABLE var])\n"
"Try compiling a program. In this form, srcdir should contain a "
@@ -67,7 +67,7 @@ public:
"bindir and srcdir will not be deleted after this command is run. "
"If <target name> is specified then build just that target "
"otherwise the all or ALL_BUILD target is built.\n"
- " TRY_COMPILE(RESULT_VAR bindir srcfile\n"
+ " try_compile(RESULT_VAR bindir srcfile\n"
" [CMAKE_FLAGS <Flags>]\n"
" [COMPILE_DEFINITIONS <flags> ...]\n"
" [OUTPUT_VARIABLE var]\n"
@@ -84,14 +84,14 @@ public:
"COMPILE_DEFINITIONS are -Ddefinition that will be passed to the "
"compile line. "
- "TRY_COMPILE creates a CMakeList.txt "
+ "try_compile creates a CMakeList.txt "
"file on the fly that looks like this:\n"
- " ADD_DEFINITIONS( <expanded COMPILE_DEFINITIONS from calling "
+ " add_definitions( <expanded COMPILE_DEFINITIONS from calling "
"cmake>)\n"
- " INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES})\n"
- " LINK_DIRECTORIES(${LINK_DIRECTORIES})\n"
- " ADD_EXECUTABLE(cmTryCompileExec sources)\n"
- " TARGET_LINK_LIBRARIES(cmTryCompileExec ${LINK_LIBRARIES})\n"
+ " include_directories(${INCLUDE_DIRECTORIES})\n"
+ " link_directories(${LINK_DIRECTORIES})\n"
+ " add_executable(cmTryCompileExec sources)\n"
+ " target_link_libraries(cmTryCompileExec ${LINK_LIBRARIES})\n"
"In both versions of the command, "
"if OUTPUT_VARIABLE is specified, then the "
"output from the build process is stored in the given variable. "
diff --git a/Source/cmTryRunCommand.h b/Source/cmTryRunCommand.h
index a5400f5..0a86486 100644
--- a/Source/cmTryRunCommand.h
+++ b/Source/cmTryRunCommand.h
@@ -44,7 +44,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "TRY_RUN";}
+ virtual const char* GetName() { return "try_run";}
/**
* Succinct documentation.
@@ -60,7 +60,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " TRY_RUN(RUN_RESULT_VAR COMPILE_RESULT_VAR\n"
+ " try_run(RUN_RESULT_VAR COMPILE_RESULT_VAR\n"
" bindir srcfile [CMAKE_FLAGS <Flags>]\n"
" [COMPILE_DEFINITIONS <flags>]\n"
" [COMPILE_OUTPUT_VARIABLE comp]\n"
@@ -79,7 +79,7 @@ public:
"gives you the output from the compile and run step combined.\n\n"
"Cross compiling issues\n"
"When cross compiling, the executable compiled in the first step "
- "usually cannot be run on the build host. TRY_RUN() checks the "
+ "usually cannot be run on the build host. try_run() checks the "
"CMAKE_CROSSCOMPILING variable to detect whether CMake is in "
"crosscompiling mode. If that's the case, it will still try to compile "
"the executable, but it will not try to run the executable. Instead it "
@@ -91,12 +91,12 @@ public:
"additional cache variable "
"RUN_RESULT_VAR__COMPILE_RESULT_VAR__TRYRUN_OUTPUT."
"This is intended to hold stdout and stderr from the executable.\n"
- "In order to make cross compiling your project easier, use TRY_RUN "
- "only if really required. If you use TRY_RUN, use RUN_OUTPUT_VARIABLE "
+ "In order to make cross compiling your project easier, use try_run "
+ "only if really required. If you use try_run, use RUN_OUTPUT_VARIABLE "
"(or OUTPUT_VARIABLE) only if really required. Using them will require "
"that when crosscompiling, the cache variables will have to be set "
"manually to the output of the executable. You can also \"guard\" the "
- "calls to TRY_RUN with IF(CMAKE_CROSSCOMPILING) and provide an "
+ "calls to try_run with if(CMAKE_CROSSCOMPILING) and provide an "
"easy-to-preset alternative for this case.\n";
}
diff --git a/Source/cmUseMangledMesaCommand.h b/Source/cmUseMangledMesaCommand.h
index 46aa100..8c38ab6 100644
--- a/Source/cmUseMangledMesaCommand.h
+++ b/Source/cmUseMangledMesaCommand.h
@@ -49,7 +49,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "USE_MANGLED_MESA";}
+ virtual const char* GetName() { return "use_mangled_mesa";}
/**
* Succinct documentation.
@@ -65,7 +65,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " USE_MANGLED_MESA(PATH_TO_MESA OUTPUT_DIRECTORY)\n"
+ " use_mangled_mesa(PATH_TO_MESA OUTPUT_DIRECTORY)\n"
"The path to mesa includes, should contain gl_mangle.h. "
"The mesa headers are copied to the specified output directory. "
"This allows mangled mesa headers to override other GL headers by "
diff --git a/Source/cmUtilitySourceCommand.h b/Source/cmUtilitySourceCommand.h
index 6364d67..4fd0474 100644
--- a/Source/cmUtilitySourceCommand.h
+++ b/Source/cmUtilitySourceCommand.h
@@ -48,7 +48,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "UTILITY_SOURCE";}
+ virtual const char* GetName() { return "utility_source";}
/**
* Succinct documentation.
@@ -64,14 +64,14 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " UTILITY_SOURCE(cache_entry executable_name\n"
+ " utility_source(cache_entry executable_name\n"
" path_to_source [file1 file2 ...])\n"
"When a third-party utility's source is included in the distribution, "
"this command specifies its location and name. The cache entry will "
"not be set unless the path_to_source and all listed files exist. It "
"is assumed that the source tree of the utility will have been built "
"before it is needed.\n"
- "When cross compiling CMake will print a warning if a UTILITY_SOURCE() "
+ "When cross compiling CMake will print a warning if a utility_source() "
"command is executed, because in many cases it is used to build an "
"executable which is executed later on. This doesn't work when "
"cross compiling, since the executable can run only on their target "
diff --git a/Source/cmVariableRequiresCommand.h b/Source/cmVariableRequiresCommand.h
index 7de3933..75e6367 100644
--- a/Source/cmVariableRequiresCommand.h
+++ b/Source/cmVariableRequiresCommand.h
@@ -43,14 +43,14 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "VARIABLE_REQUIRES";}
+ virtual const char* GetName() { return "variable_requires";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
- return "Deprecated. Use the IF() command instead.";
+ return "Deprecated. Use the if() command instead.";
}
/**
@@ -60,7 +60,7 @@ public:
{
return
"Assert satisfaction of an option's required variables.\n"
- " VARIABLE_REQUIRES(TEST_VARIABLE RESULT_VARIABLE\n"
+ " variable_requires(TEST_VARIABLE RESULT_VARIABLE\n"
" REQUIRED_VARIABLE1\n"
" REQUIRED_VARIABLE2 ...)\n"
"The first argument (TEST_VARIABLE) is the name of the variable to be "
diff --git a/Source/cmVariableWatchCommand.h b/Source/cmVariableWatchCommand.h
index 244aea9..031102e 100644
--- a/Source/cmVariableWatchCommand.h
+++ b/Source/cmVariableWatchCommand.h
@@ -58,7 +58,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "VARIABLE_WATCH";}
+ virtual const char* GetName() { return "variable_watch";}
/**
* Succinct documentation.
@@ -74,7 +74,7 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " VARIABLE_WATCH(<variable name> [<command to execute>])\n"
+ " variable_watch(<variable name> [<command to execute>])\n"
"If the specified variable changes, the message will be printed about "
"the variable being changed. If the command is spceified, the command "
"will be executed. The command will receive the following arguments:"
diff --git a/Source/cmWhileCommand.h b/Source/cmWhileCommand.h
index e1f44eb..d52e21a 100644
--- a/Source/cmWhileCommand.h
+++ b/Source/cmWhileCommand.h
@@ -79,7 +79,7 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "WHILE";}
+ virtual const char* GetName() { return "while";}
/**
* Succinct documentation.
@@ -95,13 +95,13 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " WHILE(condition)\n"
+ " while(condition)\n"
" COMMAND1(ARGS ...)\n"
" COMMAND2(ARGS ...)\n"
" ...\n"
- " ENDWHILE(condition)\n"
- "All commands between WHILE and the matching ENDWHILE are recorded "
- "without being invoked. Once the ENDWHILE is evaluated, the "
+ " endwhile(condition)\n"
+ "All commands between while and the matching endwhile are recorded "
+ "without being invoked. Once the endwhile is evaluated, the "
"recorded list of commands is invoked as long as the condition "
"is true. The condition is evaulated using the same logic as the "
"IF command.";
diff --git a/Source/cmWriteFileCommand.h b/Source/cmWriteFileCommand.h
index 7ebd5bd..643f949 100644
--- a/Source/cmWriteFileCommand.h
+++ b/Source/cmWriteFileCommand.h
@@ -48,14 +48,14 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual const char* GetName() { return "WRITE_FILE";}
+ virtual const char* GetName() { return "write_file";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
{
- return "Deprecated. Use the FILE(WRITE ) command instead.";
+ return "Deprecated. Use the file(WRITE ) command instead.";
}
/**
@@ -64,15 +64,15 @@ public:
virtual const char* GetFullDocumentation()
{
return
- " WRITE_FILE(filename \"message to write\"... [APPEND])\n"
+ " write_file(filename \"message to write\"... [APPEND])\n"
"The first argument is the file name, the rest of the arguments are "
"messages to write. If the argument APPEND is specified, then "
"the message will be appended.\n"
- "NOTE 1: FILE WRITE and FILE APPEND do exactly the same as this one "
- "but add some more functionality.\n"
- "NOTE 2: When using WRITE_FILE the produced file cannot be used as an "
+ "NOTE 1: file(WRITE ... and file(APPEND ... do exactly the same as "
+ "this one but add some more functionality.\n"
+ "NOTE 2: When using write_file the produced file cannot be used as an "
"input to CMake (CONFIGURE_FILE, source file ...) because it will "
- "lead to an infinite loop. Use CONFIGURE_FILE if you want to generate "
+ "lead to an infinite loop. Use configure_file if you want to generate "
"input files to CMake.";
}
diff --git a/Tests/CommandLineTest/CMakeLists.txt b/Tests/CommandLineTest/CMakeLists.txt
index 08fe8d3..f9abfdf 100644
--- a/Tests/CommandLineTest/CMakeLists.txt
+++ b/Tests/CommandLineTest/CMakeLists.txt
@@ -16,8 +16,8 @@ EXEC_CMAKE_COMMAND("-E time \"${CMAKE_COMMAND} -N -LH ${CommandLineTest_SOURCE_D
EXEC_CMAKE_COMMAND("-E time \"${CMAKE_COMMAND} -N -LAH ${CommandLineTest_SOURCE_DIR}\"")
EXEC_CMAKE_COMMAND("--help")
EXEC_CMAKE_COMMAND("--help-command-list")
-EXEC_CMAKE_COMMAND("--help ADD_EXECUTABLE")
-EXEC_CMAKE_COMMAND("--help-command ADD_EXECUTABLE")
+EXEC_CMAKE_COMMAND("--help add_executable")
+EXEC_CMAKE_COMMAND("--help-command add_executable")
EXEC_CMAKE_COMMAND("--help-full \"${CMAKE_CURRENT_BINARY_DIR}/cmake.txt\"")
EXEC_CMAKE_COMMAND("--help-man \"${CMAKE_CURRENT_BINARY_DIR}/cmake.man\"")
EXEC_CMAKE_COMMAND("--help-html \"${CMAKE_CURRENT_BINARY_DIR}/cmake.html\"")