diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-06-01 14:05:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-02 18:55:00 (GMT) |
commit | 87b71eec6257b0d9c43b446205d61f334278fe7d (patch) | |
tree | 727adaa232629c537ca47112fbc3f7fbeec36127 /Source/cmFindBase.h | |
parent | 2104cfe388f5d77b98727c89edff453b1d23fed6 (diff) | |
download | CMake-87b71eec6257b0d9c43b446205d61f334278fe7d.zip CMake-87b71eec6257b0d9c43b446205d61f334278fe7d.tar.gz CMake-87b71eec6257b0d9c43b446205d61f334278fe7d.tar.bz2 |
find_*: Add support for option NO_CACHE
Request that find result is stored in a normal variable rather than a
cache entry.
Fixes: #20687
Issue: #20743
Diffstat (limited to 'Source/cmFindBase.h')
-rw-r--r-- | Source/cmFindBase.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmFindBase.h b/Source/cmFindBase.h index c2a9288..d197424 100644 --- a/Source/cmFindBase.h +++ b/Source/cmFindBase.h @@ -35,10 +35,10 @@ protected: friend class cmFindBaseDebugState; void ExpandPaths(); - // see if the VariableName is already set in the cache, + // see if the VariableName is already set, // also copy the documentation from the cache to VariableDocumentation // if it has documentation in the cache - bool CheckForVariableInCache(); + bool CheckForVariableDefined(); void NormalizeFindResult(); void StoreFindResult(const std::string& value); @@ -57,8 +57,9 @@ protected: // CMAKE_*_PATH CMAKE_SYSTEM_*_PATH FRAMEWORK|LIBRARY|INCLUDE|PROGRAM std::string EnvironmentPath; // LIB,INCLUDE - bool AlreadyInCache = false; + bool AlreadyDefined = false; bool AlreadyInCacheWithoutMetaInfo = false; + bool StoreResultInCache = true; bool Required = false; |