mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user