summaryrefslogtreecommitdiff
path: root/Source/cmFindProgramCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-11-12 10:47:28 -0500
committerBrad King <brad.king@kitware.com>2010-11-12 10:47:28 -0500
commit5303fbf09ebf3ca18983bf2c556767d16a4ff677 (patch)
treedff2c0396ce5c2dab01861308802e1ee08948dd5 /Source/cmFindProgramCommand.h
parente6975fe82fc682a47739f3fad695610f045447ae (diff)
downloadcmake-5303fbf09ebf3ca18983bf2c556767d16a4ff677.tar.gz
Speedup find_* commands (#11412)
Delay computation of the command documentation until it is needed. It is wasteful to do it in the constructor on every call. Inspired-By: Christian Ehrlicher <Ch.Ehrlicher@gmx.de>
Diffstat (limited to 'Source/cmFindProgramCommand.h')
-rw-r--r--Source/cmFindProgramCommand.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindProgramCommand.h b/Source/cmFindProgramCommand.h
index ae790a3d9c..654e834bf5 100644
--- a/Source/cmFindProgramCommand.h
+++ b/Source/cmFindProgramCommand.h
@@ -25,7 +25,6 @@
class cmFindProgramCommand : public cmFindBase
{
public:
- cmFindProgramCommand();
/**
* This is a virtual constructor for the command.
*/
@@ -63,6 +62,7 @@ public:
protected:
std::string FindProgram(std::vector<std::string> names);
+ virtual void GenerateDocumentation();
private:
std::string FindAppBundle(std::vector<std::string> names);