Merge topic 'add-const-qualifiers'

737c49a Add 'const' qualifier to some cmCommand members
261491f cmPropertyDefinition::IsChained is const
This commit is contained in:
David Cole 2012-03-02 11:50:07 -05:00 committed by CMake Topic Stage
commit e4382180fc
117 changed files with 421 additions and 421 deletions

View File

@ -43,12 +43,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ctest_build";} virtual const char* GetName() const { return "ctest_build";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Build the project."; return "Build the project.";
} }
@ -57,7 +57,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" ctest_build([BUILD build_dir] [TARGET target] [RETURN_VALUE res]\n" " ctest_build([BUILD build_dir] [TARGET target] [RETURN_VALUE res]\n"

View File

@ -38,12 +38,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ctest_configure";} virtual const char* GetName() const { return "ctest_configure";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Configure the project build tree."; return "Configure the project build tree.";
} }
@ -51,7 +51,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" ctest_configure([BUILD build_dir] [SOURCE source_dir] [APPEND]\n" " ctest_configure([BUILD build_dir] [SOURCE source_dir] [APPEND]\n"

View File

@ -39,12 +39,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ctest_coverage";} virtual const char* GetName() const { return "ctest_coverage";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Collect coverage tool results."; return "Collect coverage tool results.";
} }
@ -52,7 +52,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" ctest_coverage([BUILD build_dir] [RETURN_VALUE res] [APPEND]\n" " ctest_coverage([BUILD build_dir] [RETURN_VALUE res] [APPEND]\n"

View File

@ -48,12 +48,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ctest_empty_binary_directory";} virtual const char* GetName() const { return "ctest_empty_binary_directory";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "empties the binary directory"; return "empties the binary directory";
} }
@ -61,7 +61,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" ctest_empty_binary_directory( directory )\n" " ctest_empty_binary_directory( directory )\n"

View File

@ -41,12 +41,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ctest_memcheck";} virtual const char* GetName() const { return "ctest_memcheck";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Run tests with a dynamic analysis tool."; return "Run tests with a dynamic analysis tool.";
} }
@ -54,7 +54,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" ctest_memcheck([BUILD build_dir] [RETURN_VALUE res] [APPEND]\n" " ctest_memcheck([BUILD build_dir] [RETURN_VALUE res] [APPEND]\n"

View File

@ -46,12 +46,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ctest_read_custom_files";} virtual const char* GetName() const { return "ctest_read_custom_files";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "read CTestCustom files."; return "read CTestCustom files.";
} }
@ -59,7 +59,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" ctest_read_custom_files( directory ... )\n" " ctest_read_custom_files( directory ... )\n"

View File

@ -47,12 +47,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ctest_run_script";} virtual const char* GetName() const { return "ctest_run_script";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "runs a ctest -S script"; return "runs a ctest -S script";
} }
@ -60,7 +60,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" ctest_run_script([NEW_PROCESS] script_file_name script_file_name1 \n" " ctest_run_script([NEW_PROCESS] script_file_name script_file_name1 \n"

View File

@ -47,12 +47,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ctest_sleep";} virtual const char* GetName() const { return "ctest_sleep";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "sleeps for some amount of time"; return "sleeps for some amount of time";
} }
@ -60,7 +60,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" ctest_sleep(<seconds>)\n" " ctest_sleep(<seconds>)\n"

View File

@ -55,12 +55,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ctest_start";} virtual const char* GetName() const { return "ctest_start";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Starts the testing for a given model"; return "Starts the testing for a given model";
} }
@ -68,7 +68,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" ctest_start(Model [TRACK <track>] [APPEND] [source [binary]])\n" " ctest_start(Model [TRACK <track>] [APPEND] [source [binary]])\n"

View File

@ -48,12 +48,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ctest_submit";} virtual const char* GetName() const { return "ctest_submit";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Submit results to a dashboard server."; return "Submit results to a dashboard server.";
} }
@ -61,7 +61,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" ctest_submit([PARTS ...] [FILES ...] [RETRY_COUNT count] " " ctest_submit([PARTS ...] [FILES ...] [RETRY_COUNT count] "

View File

@ -39,12 +39,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ctest_test";} virtual const char* GetName() const { return "ctest_test";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Run tests in the project build tree."; return "Run tests in the project build tree.";
} }
@ -52,7 +52,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" ctest_test([BUILD build_dir] [APPEND]\n" " ctest_test([BUILD build_dir] [APPEND]\n"

View File

@ -59,11 +59,11 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "subdirs";} virtual const char* GetName() const { return "subdirs";}
// Unused methods // Unused methods
virtual const char* GetTerseDocumentation() { return ""; } virtual const char* GetTerseDocumentation() const { return ""; }
virtual const char* GetFullDocumentation() { return ""; } virtual const char* GetFullDocumentation() const { return ""; }
cmTypeMacro(cmCTestSubdirCommand, cmCommand); cmTypeMacro(cmCTestSubdirCommand, cmCommand);
@ -161,11 +161,11 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "add_subdirectory";} virtual const char* GetName() const { return "add_subdirectory";}
// Unused methods // Unused methods
virtual const char* GetTerseDocumentation() { return ""; } virtual const char* GetTerseDocumentation() const { return ""; }
virtual const char* GetFullDocumentation() { return ""; } virtual const char* GetFullDocumentation() const { return ""; }
cmTypeMacro(cmCTestAddSubdirectoryCommand, cmCommand); cmTypeMacro(cmCTestAddSubdirectoryCommand, cmCommand);
@ -251,11 +251,11 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ADD_TEST";} virtual const char* GetName() const { return "ADD_TEST";}
// Unused methods // Unused methods
virtual const char* GetTerseDocumentation() { return ""; } virtual const char* GetTerseDocumentation() const { return ""; }
virtual const char* GetFullDocumentation() { return ""; } virtual const char* GetFullDocumentation() const { return ""; }
cmTypeMacro(cmCTestAddTestCommand, cmCommand); cmTypeMacro(cmCTestAddTestCommand, cmCommand);
@ -299,11 +299,11 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "SET_TESTS_PROPERTIES";} virtual const char* GetName() const { return "SET_TESTS_PROPERTIES";}
// Unused methods // Unused methods
virtual const char* GetTerseDocumentation() { return ""; } virtual const char* GetTerseDocumentation() const { return ""; }
virtual const char* GetFullDocumentation() { return ""; } virtual const char* GetFullDocumentation() const { return ""; }
cmTypeMacro(cmCTestSetTestsPropertiesCommand, cmCommand); cmTypeMacro(cmCTestSetTestsPropertiesCommand, cmCommand);

View File

@ -39,12 +39,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ctest_update";} virtual const char* GetName() const { return "ctest_update";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Update the work tree from version control."; return "Update the work tree from version control.";
} }
@ -52,7 +52,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" ctest_update([SOURCE source] [RETURN_VALUE res])\n" " ctest_update([SOURCE source] [RETURN_VALUE res])\n"

View File

@ -43,12 +43,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "ctest_upload";} virtual const char* GetName() const { return "ctest_upload";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Upload files to a dashboard server."; return "Upload files to a dashboard server.";
} }
@ -56,7 +56,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" ctest_upload(FILES ...)\n" " ctest_upload(FILES ...)\n"

View File

@ -44,12 +44,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "add_custom_command";} virtual const char* GetName() const {return "add_custom_command";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Add a custom build rule to the generated build system."; return "Add a custom build rule to the generated build system.";
} }
@ -57,7 +57,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
"There are two main signatures for add_custom_command " "There are two main signatures for add_custom_command "

View File

@ -42,13 +42,13 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() virtual const char* GetName() const
{return "add_custom_target";} {return "add_custom_target";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Add a target with no output so it will always be built."; return "Add a target with no output so it will always be built.";
} }
@ -56,7 +56,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" add_custom_target(Name [ALL] [command1 [args1...]]\n" " add_custom_target(Name [ALL] [command1 [args1...]]\n"

View File

@ -41,12 +41,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "add_definitions";} virtual const char* GetName() const {return "add_definitions";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Adds -D define flags to the compilation of source files."; return "Adds -D define flags to the compilation of source files.";
} }
@ -54,7 +54,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" add_definitions(-DFOO -DBAR ...)\n" " add_definitions(-DFOO -DBAR ...)\n"

View File

@ -40,12 +40,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "add_dependencies";} virtual const char* GetName() const { return "add_dependencies";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Add a dependency between top-level targets."; return "Add a dependency between top-level targets.";
} }
@ -53,7 +53,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" add_dependencies(target-name depend-target1\n" " add_dependencies(target-name depend-target1\n"

View File

@ -41,12 +41,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "add_executable";} virtual const char* GetName() const { return "add_executable";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return return
"Add an executable to the project using the specified source files."; "Add an executable to the project using the specified source files.";
@ -55,7 +55,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" add_executable(<name> [WIN32] [MACOSX_BUNDLE]\n" " add_executable(<name> [WIN32] [MACOSX_BUNDLE]\n"

View File

@ -41,12 +41,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "add_library";} virtual const char* GetName() const { return "add_library";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Add a library to the project using the specified source files."; return "Add a library to the project using the specified source files.";
} }
@ -54,7 +54,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" add_library(<name> [STATIC | SHARED | MODULE]\n" " add_library(<name> [STATIC | SHARED | MODULE]\n"

View File

@ -42,12 +42,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "add_subdirectory";} virtual const char* GetName() const { return "add_subdirectory";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Add a subdirectory to the build."; return "Add a subdirectory to the build.";
} }
@ -55,7 +55,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" add_subdirectory(source_dir [binary_dir] \n" " add_subdirectory(source_dir [binary_dir] \n"

View File

@ -41,12 +41,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "add_test";} virtual const char* GetName() const { return "add_test";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Add a test to the project with the specified arguments."; return "Add a test to the project with the specified arguments.";
} }
@ -54,7 +54,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" add_test(testname Exename arg1 arg2 ... )\n" " add_test(testname Exename arg1 arg2 ... )\n"

View File

@ -44,12 +44,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "aux_source_directory";} virtual const char* GetName() const { return "aux_source_directory";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Find all source files in a directory."; return "Find all source files in a directory.";
} }
@ -57,7 +57,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" aux_source_directory(<dir> <variable>)\n" " aux_source_directory(<dir> <variable>)\n"

View File

@ -40,17 +40,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "break";} virtual const char* GetName() const {return "break";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Break from an enclosing foreach or while loop."; return "Break from an enclosing foreach or while loop.";
} }
@ -58,7 +58,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" break()\n" " break()\n"

View File

@ -50,12 +50,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "build_command";} virtual const char* GetName() const {return "build_command";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Get the command line to build this project."; return "Get the command line to build this project.";
} }
@ -63,7 +63,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" build_command(<variable>\n" " build_command(<variable>\n"

View File

@ -40,17 +40,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "build_name";} virtual const char* GetName() const {return "build_name";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return return
"Deprecated. Use ${CMAKE_SYSTEM} and ${CMAKE_CXX_COMPILER} instead."; "Deprecated. Use ${CMAKE_SYSTEM} and ${CMAKE_CXX_COMPILER} instead.";
@ -59,7 +59,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" build_name(variable)\n" " build_name(variable)\n"
@ -69,7 +69,7 @@ public:
} }
/** This command is kept for compatibility with older CMake versions. */ /** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged() virtual bool IsDiscouraged() const
{ {
return true; return true;
} }

View File

@ -40,17 +40,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "cmake_minimum_required";} virtual const char* GetName() const {return "cmake_minimum_required";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Set the minimum required version of cmake for a project."; return "Set the minimum required version of cmake for a project.";
} }
@ -58,7 +58,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" cmake_minimum_required(VERSION major[.minor[.patch[.tweak]]]\n" " cmake_minimum_required(VERSION major[.minor[.patch[.tweak]]]\n"

View File

@ -41,17 +41,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "cmake_policy";} virtual const char* GetName() const {return "cmake_policy";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Manage CMake Policy settings."; return "Manage CMake Policy settings.";
} }
@ -59,7 +59,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
"As CMake evolves it is sometimes necessary to change existing " "As CMake evolves it is sometimes necessary to change existing "

View File

@ -96,7 +96,7 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() virtual bool IsScriptable() const
{ {
return false; return false;
} }
@ -105,7 +105,7 @@ public:
* This determines if usage of the method is discouraged or not. * This determines if usage of the method is discouraged or not.
* This is currently only used for generating the documentation. * This is currently only used for generating the documentation.
*/ */
virtual bool IsDiscouraged() virtual bool IsDiscouraged() const
{ {
return false; return false;
} }
@ -116,7 +116,7 @@ public:
* cmMacroHelperCommand and cmFunctionHelperCommand * cmMacroHelperCommand and cmFunctionHelperCommand
* which cannot provide appropriate documentation. * which cannot provide appropriate documentation.
*/ */
virtual bool ShouldAppearInDocumentation() virtual bool ShouldAppearInDocumentation() const
{ {
return true; return true;
} }
@ -124,17 +124,17 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() = 0; virtual const char* GetName() const = 0;
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() = 0; virtual const char* GetTerseDocumentation() const = 0;
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() = 0; virtual const char* GetFullDocumentation() const = 0;
/** /**
* Enable the command. * Enable the command.
@ -151,7 +151,7 @@ public:
/** /**
* Query whether the command is enabled. * Query whether the command is enabled.
*/ */
bool GetEnabled() bool GetEnabled() const
{return this->Enabled;} {return this->Enabled;}
/** /**

View File

@ -34,17 +34,17 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "configure_file";} virtual const char* GetName() const { return "configure_file";}
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Copy a file to another location and modify its contents."; return "Copy a file to another location and modify its contents.";
} }
@ -52,7 +52,7 @@ public:
/** /**
* Longer documentation. * Longer documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" configure_file(<input> <output>\n" " configure_file(<input> <output>\n"

View File

@ -40,12 +40,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "create_test_sourcelist";} virtual const char* GetName() const {return "create_test_sourcelist";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Create a test driver and source list for building test programs."; return "Create a test driver and source list for building test programs.";
} }
@ -53,7 +53,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" create_test_sourcelist(sourceListName driverName\n" " create_test_sourcelist(sourceListName driverName\n"

View File

@ -32,12 +32,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "define_property";} virtual const char* GetName() const { return "define_property";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Define and document custom properties."; return "Define and document custom properties.";
} }
@ -45,7 +45,7 @@ public:
/** /**
* Longer documentation. * Longer documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" define_property(<GLOBAL | DIRECTORY | TARGET | SOURCE |\n" " define_property(<GLOBAL | DIRECTORY | TARGET | SOURCE |\n"

View File

@ -40,17 +40,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "else";} virtual const char* GetName() const { return "else";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Starts the else portion of an if block."; return "Starts the else portion of an if block.";
} }
@ -58,7 +58,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" else(expression)\n" " else(expression)\n"

View File

@ -40,17 +40,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "elseif";} virtual const char* GetName() const { return "elseif";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Starts the elseif portion of an if block."; return "Starts the elseif portion of an if block.";
} }
@ -58,7 +58,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" elseif(expression)\n" " elseif(expression)\n"

View File

@ -43,12 +43,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "enable_language";} virtual const char* GetName() const {return "enable_language";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Enable a language (CXX/C/Fortran/etc)"; return "Enable a language (CXX/C/Fortran/etc)";
} }
@ -56,7 +56,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" enable_language(languageName [OPTIONAL] )\n" " enable_language(languageName [OPTIONAL] )\n"

View File

@ -48,12 +48,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "enable_testing";} virtual const char* GetName() const { return "enable_testing";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Enable testing for current directory and below."; return "Enable testing for current directory and below.";
} }
@ -61,7 +61,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" enable_testing()\n" " enable_testing()\n"

View File

@ -47,17 +47,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "endforeach";} virtual const char* GetName() const { return "endforeach";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Ends a list of commands in a FOREACH block."; return "Ends a list of commands in a FOREACH block.";
} }
@ -65,7 +65,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" endforeach(expression)\n" " endforeach(expression)\n"

View File

@ -47,17 +47,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "endfunction";} virtual const char* GetName() const { return "endfunction";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Ends a list of commands in a function block."; return "Ends a list of commands in a function block.";
} }
@ -65,7 +65,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" endfunction(expression)\n" " endfunction(expression)\n"

View File

@ -40,17 +40,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "endif";} virtual const char* GetName() const { return "endif";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Ends a list of commands in an if block."; return "Ends a list of commands in an if block.";
} }
@ -58,7 +58,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" endif(expression)\n" " endif(expression)\n"

View File

@ -47,17 +47,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "endmacro";} virtual const char* GetName() const { return "endmacro";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Ends a list of commands in a macro block."; return "Ends a list of commands in a macro block.";
} }
@ -65,7 +65,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" endmacro(expression)\n" " endmacro(expression)\n"

View File

@ -47,17 +47,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "endwhile";} virtual const char* GetName() const { return "endwhile";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Ends a list of commands in a while block."; return "Ends a list of commands in a while block.";
} }
@ -65,7 +65,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" endwhile(expression)\n" " endwhile(expression)\n"

View File

@ -42,18 +42,18 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() virtual const char* GetName() const
{return "exec_program";} {return "exec_program";}
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return return
"Deprecated. Use the execute_process() command instead."; "Deprecated. Use the execute_process() command instead.";
@ -62,7 +62,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
"Run an executable program during the processing of the CMakeList.txt" "Run an executable program during the processing of the CMakeList.txt"
@ -84,7 +84,7 @@ public:
} }
/** This command is kept for compatibility with older CMake versions. */ /** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged() virtual bool IsDiscouraged() const
{ {
return true; return true;
} }

View File

@ -41,18 +41,18 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() virtual const char* GetName() const
{return "execute_process";} {return "execute_process";}
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Execute one or more child processes."; return "Execute one or more child processes.";
} }
@ -60,7 +60,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" execute_process(COMMAND <cmd1> [args1...]]\n" " execute_process(COMMAND <cmd1> [args1...]]\n"

View File

@ -45,12 +45,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "export";} virtual const char* GetName() const { return "export";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return return
"Export targets from the build tree for use by outside projects."; "Export targets from the build tree for use by outside projects.";
@ -59,7 +59,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" export(TARGETS [target1 [target2 [...]]] [NAMESPACE <namespace>]\n" " export(TARGETS [target1 [target2 [...]]] [NAMESPACE <namespace>]\n"

View File

@ -48,12 +48,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "export_library_dependencies";} virtual const char* GetName() const { return "export_library_dependencies";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Deprecated. Use INSTALL(EXPORT) or EXPORT command."; return "Deprecated. Use INSTALL(EXPORT) or EXPORT command.";
} }
@ -61,7 +61,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
"This command generates an old-style library dependencies file. " "This command generates an old-style library dependencies file. "
@ -83,7 +83,7 @@ public:
} }
/** This command is kept for compatibility with older CMake versions. */ /** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged() virtual bool IsDiscouraged() const
{ {
return true; return true;
} }

View File

@ -52,12 +52,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "fltk_wrap_ui";} virtual const char* GetName() const { return "fltk_wrap_ui";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Create FLTK user interfaces Wrappers."; return "Create FLTK user interfaces Wrappers.";
} }
@ -65,7 +65,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" fltk_wrap_ui(resultingLibraryName source1\n" " fltk_wrap_ui(resultingLibraryName source1\n"

View File

@ -41,17 +41,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "file";} virtual const char* GetName() const { return "file";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "File manipulation command."; return "File manipulation command.";
} }
@ -59,7 +59,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" file(WRITE filename \"message to write\"... )\n" " file(WRITE filename \"message to write\"... )\n"

View File

@ -108,11 +108,11 @@ void cmFindBase::GenerateDocumentation()
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
const char* cmFindBase::GetFullDocumentation() const char* cmFindBase::GetFullDocumentation() const
{ {
if(this->GenericDocumentation.empty()) if(this->GenericDocumentation.empty())
{ {
this->GenerateDocumentation(); const_cast<cmFindBase *>(this)->GenerateDocumentation();
} }
return this->GenericDocumentation.c_str(); return this->GenericDocumentation.c_str();
} }

View File

@ -31,7 +31,7 @@ public:
virtual bool ParseArguments(std::vector<std::string> const& args); virtual bool ParseArguments(std::vector<std::string> const& args);
cmTypeMacro(cmFindBase, cmFindCommon); cmTypeMacro(cmFindBase, cmFindCommon);
virtual const char* GetFullDocumentation(); virtual const char* GetFullDocumentation() const;
protected: protected:
virtual void GenerateDocumentation(); virtual void GenerateDocumentation();

View File

@ -33,12 +33,12 @@ public:
{ {
return new cmFindFileCommand; return new cmFindFileCommand;
} }
virtual const char* GetName() { return "find_file";} virtual const char* GetName() const { return "find_file";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Find the full path to a file."; return "Find the full path to a file.";
} }

View File

@ -44,17 +44,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "find_library";} virtual const char* GetName() const {return "find_library";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Find a library."; return "Find a library.";
} }

View File

@ -354,11 +354,11 @@ void cmFindPackageCommand::GenerateDocumentation()
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
const char* cmFindPackageCommand::GetFullDocumentation() const char* cmFindPackageCommand::GetFullDocumentation() const
{ {
if(this->CommandDocumentation.empty()) if(this->CommandDocumentation.empty())
{ {
this->GenerateDocumentation(); const_cast<cmFindPackageCommand *>(this)->GenerateDocumentation();
} }
return this->CommandDocumentation.c_str(); return this->CommandDocumentation.c_str();
} }

View File

@ -44,17 +44,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "find_package";} virtual const char* GetName() const { return "find_package";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Load settings for an external project."; return "Load settings for an external project.";
} }
@ -62,7 +62,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation(); virtual const char* GetFullDocumentation() const;
cmTypeMacro(cmFindPackageCommand, cmFindCommon); cmTypeMacro(cmFindPackageCommand, cmFindCommon);
protected: protected:

View File

@ -44,17 +44,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "find_path";} virtual const char* GetName() const {return "find_path";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Find the directory containing a file."; return "Find the directory containing a file.";
} }

View File

@ -43,17 +43,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "find_program";} virtual const char* GetName() const { return "find_program";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Find an executable program."; return "Find an executable program.";
} }

View File

@ -63,17 +63,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "foreach";} virtual const char* GetName() const { return "foreach";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Evaluate a group of commands for each value in a list."; return "Evaluate a group of commands for each value in a list.";
} }
@ -81,7 +81,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" foreach(loop_var arg1 arg2 ...)\n" " foreach(loop_var arg1 arg2 ...)\n"

View File

@ -28,7 +28,7 @@ public:
* cmMacroHelperCommand and cmFunctionHelperCommand * cmMacroHelperCommand and cmFunctionHelperCommand
* which cannot provide appropriate documentation. * which cannot provide appropriate documentation.
*/ */
virtual bool ShouldAppearInDocumentation() virtual bool ShouldAppearInDocumentation() const
{ {
return false; return false;
} }
@ -49,7 +49,7 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
@ -64,12 +64,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return this->Args[0].c_str(); } virtual const char* GetName() const { return this->Args[0].c_str(); }
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
std::string docs = "Function named: "; std::string docs = "Function named: ";
docs += this->GetName(); docs += this->GetName();
@ -79,7 +79,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return this->GetTerseDocumentation(); return this->GetTerseDocumentation();
} }

View File

@ -61,17 +61,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "function";} virtual const char* GetName() const { return "function";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Start recording a function for later invocation as a command."; return "Start recording a function for later invocation as a command.";
} }
@ -79,7 +79,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" function(<name> [arg1 [arg2 [arg3 ...]]])\n" " function(<name> [arg1 [arg2 [arg3 ...]]])\n"

View File

@ -32,17 +32,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "get_cmake_property";} virtual const char* GetName() const { return "get_cmake_property";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Get a property of the CMake instance."; return "Get a property of the CMake instance.";
} }
@ -50,7 +50,7 @@ public:
/** /**
* Longer documentation. * Longer documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" get_cmake_property(VAR property)\n" " get_cmake_property(VAR property)\n"

View File

@ -32,17 +32,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "get_directory_property";} virtual const char* GetName() const { return "get_directory_property";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Get a property of DIRECTORY scope."; return "Get a property of DIRECTORY scope.";
} }
@ -50,7 +50,7 @@ public:
/** /**
* Longer documentation. * Longer documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" get_directory_property(<variable> [DIRECTORY <dir>] <prop-name>)\n" " get_directory_property(<variable> [DIRECTORY <dir>] <prop-name>)\n"

View File

@ -41,17 +41,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "get_filename_component";} virtual const char* GetName() const { return "get_filename_component";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Get a specific component of a full filename."; return "Get a specific component of a full filename.";
} }
@ -59,7 +59,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" get_filename_component(<VAR> FileName\n" " get_filename_component(<VAR> FileName\n"

View File

@ -34,17 +34,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "get_property";} virtual const char* GetName() const { return "get_property";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Get a property."; return "Get a property.";
} }
@ -52,7 +52,7 @@ public:
/** /**
* Longer documentation. * Longer documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" get_property(<variable>\n" " get_property(<variable>\n"

View File

@ -32,12 +32,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "get_source_file_property";} virtual const char* GetName() const { return "get_source_file_property";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Get a property for a source file."; return "Get a property for a source file.";
} }
@ -45,7 +45,7 @@ public:
/** /**
* Longer documentation. * Longer documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" get_source_file_property(VAR file property)\n" " get_source_file_property(VAR file property)\n"

View File

@ -32,12 +32,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "get_target_property";} virtual const char* GetName() const { return "get_target_property";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Get a property from a target."; return "Get a property from a target.";
} }
@ -45,7 +45,7 @@ public:
/** /**
* Longer documentation. * Longer documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" get_target_property(VAR target property)\n" " get_target_property(VAR target property)\n"

View File

@ -32,12 +32,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "get_test_property";} virtual const char* GetName() const { return "get_test_property";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Get a property of the test."; return "Get a property of the test.";
} }
@ -45,7 +45,7 @@ public:
/** /**
* Longer documentation. * Longer documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" get_test_property(test property VAR)\n" " get_test_property(test property VAR)\n"

View File

@ -72,12 +72,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "if";} virtual const char* GetName() const { return "if";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Conditionally execute a group of commands."; return "Conditionally execute a group of commands.";
} }
@ -85,12 +85,12 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" if(expression)\n" " if(expression)\n"

View File

@ -43,17 +43,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "include";} virtual const char* GetName() const {return "include";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Read CMake listfile code from the given file."; return "Read CMake listfile code from the given file.";
} }
@ -61,7 +61,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" include(<file|module> [OPTIONAL] [RESULT_VARIABLE <VAR>]\n" " include(<file|module> [OPTIONAL] [RESULT_VARIABLE <VAR>]\n"

View File

@ -41,12 +41,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "include_directories";} virtual const char* GetName() const { return "include_directories";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Add include directories to the build."; return "Add include directories to the build.";
} }
@ -54,7 +54,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)\n" " include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)\n"

View File

@ -42,12 +42,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "include_external_msproject";} virtual const char* GetName() const {return "include_external_msproject";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Include an external Microsoft project file in a workspace."; return "Include an external Microsoft project file in a workspace.";
} }
@ -55,7 +55,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" include_external_msproject(projectname location\n" " include_external_msproject(projectname location\n"

View File

@ -41,12 +41,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "include_regular_expression";} virtual const char* GetName() const {return "include_regular_expression";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Set the regular expression used for dependency checking."; return "Set the regular expression used for dependency checking.";
} }
@ -54,7 +54,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" include_regular_expression(regex_match [regex_complain])\n" " include_regular_expression(regex_match [regex_complain])\n"

View File

@ -41,12 +41,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "install";} virtual const char* GetName() const { return "install";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Specify rules to run at install time."; return "Specify rules to run at install time.";
} }
@ -54,7 +54,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
"This command generates installation rules for a project. " "This command generates installation rules for a project. "

View File

@ -41,12 +41,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "install_files";} virtual const char* GetName() const { return "install_files";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Deprecated. Use the install(FILES ) command instead."; return "Deprecated. Use the install(FILES ) command instead.";
} }
@ -63,7 +63,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
"This command has been superceded by the install command. It " "This command has been superceded by the install command. It "
@ -92,7 +92,7 @@ public:
} }
/** This command is kept for compatibility with older CMake versions. */ /** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged() virtual bool IsDiscouraged() const
{ {
return true; return true;
} }

View File

@ -41,12 +41,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "install_programs";} virtual const char* GetName() const { return "install_programs";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Deprecated. Use the install(PROGRAMS ) command instead."; return "Deprecated. Use the install(PROGRAMS ) command instead.";
} }
@ -64,7 +64,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
"This command has been superceded by the install command. It " "This command has been superceded by the install command. It "
@ -89,7 +89,7 @@ public:
} }
/** This command is kept for compatibility with older CMake versions. */ /** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged() virtual bool IsDiscouraged() const
{ {
return true; return true;
} }

View File

@ -42,12 +42,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "install_targets";} virtual const char* GetName() const { return "install_targets";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Deprecated. Use the install(TARGETS ) command instead."; return "Deprecated. Use the install(TARGETS ) command instead.";
} }
@ -55,7 +55,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
"This command has been superceded by the install command. It " "This command has been superceded by the install command. It "
@ -69,7 +69,7 @@ public:
} }
/** This command is kept for compatibility with older CMake versions. */ /** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged() virtual bool IsDiscouraged() const
{ {
return true; return true;
} }

View File

@ -43,12 +43,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "link_directories";} virtual const char* GetName() const { return "link_directories";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Specify directories in which the linker will look for libraries."; return "Specify directories in which the linker will look for libraries.";
} }
@ -56,7 +56,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" link_directories(directory1 directory2 ...)\n" " link_directories(directory1 directory2 ...)\n"

View File

@ -42,12 +42,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "link_libraries";} virtual const char* GetName() const { return "link_libraries";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Deprecated. Use the target_link_libraries() command instead."; return "Deprecated. Use the target_link_libraries() command instead.";
} }
@ -55,7 +55,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
"Link libraries to all targets added later.\n" "Link libraries to all targets added later.\n"
@ -70,7 +70,7 @@ public:
} }
/** This command is kept for compatibility with older CMake versions. */ /** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged() virtual bool IsDiscouraged() const
{ {
return true; return true;
} }

View File

@ -39,17 +39,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "list";} virtual const char* GetName() const { return "list";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "List operations."; return "List operations.";
} }
@ -57,7 +57,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" list(LENGTH <list> <output variable>)\n" " list(LENGTH <list> <output variable>)\n"

View File

@ -40,12 +40,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "load_cache";} virtual const char* GetName() const { return "load_cache";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Load in the values from another project's CMake cache."; return "Load in the values from another project's CMake cache.";
} }
@ -53,7 +53,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" load_cache(pathToCacheFile READ_WITH_PREFIX\n" " load_cache(pathToCacheFile READ_WITH_PREFIX\n"

View File

@ -69,12 +69,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return info.Name; } virtual const char* GetName() const { return info.Name; }
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
if (this->info.GetTerseDocumentation) if (this->info.GetTerseDocumentation)
{ {
@ -123,7 +123,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
if (this->info.GetFullDocumentation) if (this->info.GetFullDocumentation)
{ {

View File

@ -40,12 +40,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "load_command";} virtual const char* GetName() const {return "load_command";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Load a command into a running CMake."; return "Load a command into a running CMake.";
} }
@ -53,7 +53,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" load_command(COMMAND_NAME <loc1> [loc2 ...])\n" " load_command(COMMAND_NAME <loc1> [loc2 ...])\n"

View File

@ -28,7 +28,7 @@ public:
* cmMacroHelperCommand and cmFunctionHelperCommand * cmMacroHelperCommand and cmFunctionHelperCommand
* which cannot provide appropriate documentation. * which cannot provide appropriate documentation.
*/ */
virtual bool ShouldAppearInDocumentation() virtual bool ShouldAppearInDocumentation() const
{ {
return false; return false;
} }
@ -50,7 +50,7 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
@ -65,12 +65,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return this->Args[0].c_str(); } virtual const char* GetName() const { return this->Args[0].c_str(); }
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
std::string docs = "Macro named: "; std::string docs = "Macro named: ";
docs += this->GetName(); docs += this->GetName();
@ -80,7 +80,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return this->GetTerseDocumentation(); return this->GetTerseDocumentation();
} }

View File

@ -61,17 +61,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "macro";} virtual const char* GetName() const { return "macro";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Start recording a macro for later invocation as a command."; return "Start recording a macro for later invocation as a command.";
} }
@ -79,7 +79,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" macro(<name> [arg1 [arg2 [arg3 ...]]])\n" " macro(<name> [arg1 [arg2 [arg3 ...]]])\n"

View File

@ -44,17 +44,17 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "make_directory";} virtual const char* GetName() const { return "make_directory";}
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Deprecated. Use the file(MAKE_DIRECTORY ) command instead."; return "Deprecated. Use the file(MAKE_DIRECTORY ) command instead.";
} }
@ -62,7 +62,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" make_directory(directory)\n" " make_directory(directory)\n"
@ -72,7 +72,7 @@ public:
} }
/** This command is kept for compatibility with older CMake versions. */ /** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged() virtual bool IsDiscouraged() const
{ {
return true; return true;
} }

View File

@ -40,12 +40,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "mark_as_advanced";} virtual const char* GetName() const {return "mark_as_advanced";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Mark cmake cached variables as advanced."; return "Mark cmake cached variables as advanced.";
} }
@ -53,7 +53,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" mark_as_advanced([CLEAR|FORCE] VAR VAR2 VAR...)\n" " mark_as_advanced([CLEAR|FORCE] VAR VAR2 VAR...)\n"
@ -75,7 +75,7 @@ public:
* make many of the modules usable in cmake/ctest scripts, (among them * make many of the modules usable in cmake/ctest scripts, (among them
* FindUnixMake.cmake used by the CTEST_BUILD command. * FindUnixMake.cmake used by the CTEST_BUILD command.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
cmTypeMacro(cmMarkAsAdvancedCommand, cmCommand); cmTypeMacro(cmMarkAsAdvancedCommand, cmCommand);
}; };

View File

@ -39,17 +39,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "math";} virtual const char* GetName() const { return "math";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Mathematical expressions."; return "Mathematical expressions.";
} }
@ -57,7 +57,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" math(EXPR <output variable> <math expression>)\n" " math(EXPR <output variable> <math expression>)\n"

View File

@ -39,17 +39,17 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "message";} virtual const char* GetName() const { return "message";}
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Display a message to the user."; return "Display a message to the user.";
} }
@ -57,7 +57,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" message([STATUS|WARNING|AUTHOR_WARNING|FATAL_ERROR|SEND_ERROR]\n" " message([STATUS|WARNING|AUTHOR_WARNING|FATAL_ERROR|SEND_ERROR]\n"

View File

@ -40,12 +40,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "option";} virtual const char* GetName() const {return "option";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Provides an option that the user can optionally select."; return "Provides an option that the user can optionally select.";
} }
@ -53,7 +53,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" option(<option_variable> \"help string describing option\"\n" " option(<option_variable> \"help string describing option\"\n"
@ -68,7 +68,7 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
cmTypeMacro(cmOptionCommand, cmCommand); cmTypeMacro(cmOptionCommand, cmCommand);
}; };

View File

@ -40,12 +40,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "output_required_files";} virtual const char* GetName() const { return "output_required_files";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Deprecated. Approximate C preprocessor dependency scanning."; return "Deprecated. Approximate C preprocessor dependency scanning.";
} }
@ -53,7 +53,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
"This command exists only because ancient CMake versions provided it. " "This command exists only because ancient CMake versions provided it. "
@ -67,7 +67,7 @@ public:
} }
/** This command is kept for compatibility with older CMake versions. */ /** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged() virtual bool IsDiscouraged() const
{ {
return true; return true;
} }

View File

@ -43,12 +43,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "project";} virtual const char* GetName() const {return "project";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Set a name for the entire project."; return "Set a name for the entire project.";
} }
@ -56,7 +56,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" project(<projectname> [languageName1 languageName2 ... ] )\n" " project(<projectname> [languageName1 languageName2 ... ] )\n"

View File

@ -31,7 +31,7 @@ public:
cmPropertyDefinition() { this->Chained = false; }; cmPropertyDefinition() { this->Chained = false; };
// is it chained? // is it chained?
bool IsChained() {return this->Chained; }; bool IsChained() const { return this->Chained; };
// Get the section if any // Get the section if any
const std::string &GetDocumentationSection() const { const std::string &GetDocumentationSection() const {

View File

@ -45,12 +45,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "qt_wrap_cpp";} virtual const char* GetName() const { return "qt_wrap_cpp";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Create Qt Wrappers."; return "Create Qt Wrappers.";
} }
@ -58,7 +58,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" qt_wrap_cpp(resultingLibraryName DestName\n" " qt_wrap_cpp(resultingLibraryName DestName\n"

View File

@ -43,12 +43,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "qt_wrap_ui";} virtual const char* GetName() const { return "qt_wrap_ui";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Create Qt user interfaces Wrappers."; return "Create Qt user interfaces Wrappers.";
} }
@ -56,7 +56,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" qt_wrap_ui(resultingLibraryName HeadersDestName\n" " qt_wrap_ui(resultingLibraryName HeadersDestName\n"

View File

@ -40,17 +40,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "remove";} virtual const char* GetName() const {return "remove";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Deprecated. Use the list(REMOVE_ITEM ) command instead."; return "Deprecated. Use the list(REMOVE_ITEM ) command instead.";
} }
@ -58,7 +58,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" remove(VAR VALUE VALUE ...)\n" " remove(VAR VALUE VALUE ...)\n"
@ -68,7 +68,7 @@ public:
} }
/** This command is kept for compatibility with older CMake versions. */ /** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged() virtual bool IsDiscouraged() const
{ {
return true; return true;
} }

View File

@ -42,12 +42,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "remove_definitions";} virtual const char* GetName() const {return "remove_definitions";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Removes -D define flags added by add_definitions."; return "Removes -D define flags added by add_definitions.";
} }
@ -55,7 +55,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" remove_definitions(-DFOO -DBAR ...)\n" " remove_definitions(-DFOO -DBAR ...)\n"

View File

@ -40,17 +40,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "return";} virtual const char* GetName() const {return "return";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Return from a file, directory or function."; return "Return from a file, directory or function.";
} }
@ -58,7 +58,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" return()\n" " return()\n"

View File

@ -40,17 +40,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "separate_arguments";} virtual const char* GetName() const {return "separate_arguments";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return return
"Parse space-separated arguments into a semicolon-separated list."; "Parse space-separated arguments into a semicolon-separated list.";
@ -59,7 +59,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" separate_arguments(<var> <UNIX|WINDOWS>_COMMAND \"<args>\")\n" " separate_arguments(<var> <UNIX|WINDOWS>_COMMAND \"<args>\")\n"

View File

@ -40,17 +40,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() {return "set";} virtual const char* GetName() const {return "set";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Set a CMAKE variable to a given value."; return "Set a CMAKE variable to a given value.";
} }
@ -58,7 +58,7 @@ public:
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" set(<variable> <value>\n" " set(<variable> <value>\n"

View File

@ -32,17 +32,17 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "set_directory_properties";} virtual const char* GetName() const { return "set_directory_properties";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Set a property of the directory."; return "Set a property of the directory.";
} }
@ -58,7 +58,7 @@ public:
/** /**
* Longer documentation. * Longer documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" set_directory_properties(PROPERTIES prop1 value1 prop2 value2)\n" " set_directory_properties(PROPERTIES prop1 value1 prop2 value2)\n"

View File

@ -34,12 +34,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "set_property";} virtual const char* GetName() const { return "set_property";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Set a named property in a given scope."; return "Set a named property in a given scope.";
} }
@ -47,7 +47,7 @@ public:
/** /**
* Longer documentation. * Longer documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" set_property(<GLOBAL |\n" " set_property(<GLOBAL |\n"
@ -86,7 +86,7 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() { return true; } virtual bool IsScriptable() const { return true; }
cmTypeMacro(cmSetPropertyCommand, cmCommand); cmTypeMacro(cmSetPropertyCommand, cmCommand);

View File

@ -32,12 +32,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual const char* GetName() { return "set_source_files_properties";} virtual const char* GetName() const { return "set_source_files_properties";}
/** /**
* Succinct documentation. * Succinct documentation.
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation() const
{ {
return "Source files can have properties that affect how they are built."; return "Source files can have properties that affect how they are built.";
} }
@ -45,7 +45,7 @@ public:
/** /**
* Longer documentation. * Longer documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation() const
{ {
return return
" set_source_files_properties([file1 [file2 [...]]]\n" " set_source_files_properties([file1 [file2 [...]]]\n"

Some files were not shown because too many files have changed in this diff Show More