diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-05-02 12:20:56 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-05-11 16:16:08 (GMT) |
commit | b1729200c318dab23daac8643da5f9fdc673a5ef (patch) | |
tree | 46da1a315c6cc75fb22e63d07b667f31c9254de8 /Source/cmFindBase.h | |
parent | ee87e53d3732a6482841c01c16e89f2822137d0e (diff) | |
download | CMake-b1729200c318dab23daac8643da5f9fdc673a5ef.zip CMake-b1729200c318dab23daac8643da5f9fdc673a5ef.tar.gz CMake-b1729200c318dab23daac8643da5f9fdc673a5ef.tar.bz2 |
find_*: refactor cache variable handling
Diffstat (limited to 'Source/cmFindBase.h')
-rw-r--r-- | Source/cmFindBase.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmFindBase.h b/Source/cmFindBase.h index 57a40be..c2a9288 100644 --- a/Source/cmFindBase.h +++ b/Source/cmFindBase.h @@ -9,6 +9,7 @@ #include <vector> #include "cmFindCommon.h" +#include "cmStateTypes.h" class cmExecutionStatus; @@ -21,7 +22,7 @@ class cmExecutionStatus; class cmFindBase : public cmFindCommon { public: - cmFindBase(cmExecutionStatus& status); + cmFindBase(std::string findCommandName, cmExecutionStatus& status); virtual ~cmFindBase() = default; /** @@ -39,8 +40,15 @@ protected: // if it has documentation in the cache bool CheckForVariableInCache(); + void NormalizeFindResult(); + void StoreFindResult(const std::string& value); + + // actual find command name + std::string FindCommandName; + // use by command during find std::string VariableDocumentation; + cmStateEnums::CacheEntryType VariableType = cmStateEnums::UNINITIALIZED; std::string VariableName; std::vector<std::string> Names; bool NamesPerDir = false; |