summaryrefslogtreecommitdiffstats
path: root/Source/cmFindBase.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-05-02 12:20:56 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-05-11 16:16:08 (GMT)
commitb1729200c318dab23daac8643da5f9fdc673a5ef (patch)
tree46da1a315c6cc75fb22e63d07b667f31c9254de8 /Source/cmFindBase.h
parentee87e53d3732a6482841c01c16e89f2822137d0e (diff)
downloadCMake-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.h10
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;