mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05: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:
@@ -59,10 +59,10 @@ public:
|
||||
return "Find the directory containing a file.";
|
||||
}
|
||||
|
||||
virtual const char* GetFullDocumentation();
|
||||
cmTypeMacro(cmFindPathCommand, cmFindBase);
|
||||
bool IncludeFileInPath;
|
||||
bool ExtraDocAdded;
|
||||
protected:
|
||||
virtual void GenerateDocumentation();
|
||||
private:
|
||||
std::string FindHeaderInFramework(std::string const& file,
|
||||
std::string const& dir);
|
||||
|
||||
Reference in New Issue
Block a user