diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-10-23 16:37:06 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2020-10-26 11:32:45 (GMT) |
commit | b7d7eca66db97f9dcb6068762733f06941c0c05a (patch) | |
tree | 17b111e02de883947dd10c1097ae14303906945b /Source/cmCacheManager.h | |
parent | f2a59d400e9ec2e937f6000000c2e9860e388ca7 (diff) | |
download | CMake-b7d7eca66db97f9dcb6068762733f06941c0c05a.zip CMake-b7d7eca66db97f9dcb6068762733f06941c0c05a.tar.gz CMake-b7d7eca66db97f9dcb6068762733f06941c0c05a.tar.bz2 |
CMakePresets.json: Rework how --preset argument is handled
If a path argument with no -S or -B leads to a cache directory,
use that directory as the binary directory. Otherwise, use the
binary directory from the preset.
Fixes: #21311
Diffstat (limited to 'Source/cmCacheManager.h')
-rw-r--r-- | Source/cmCacheManager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h index 20d49a8..9aebffc 100644 --- a/Source/cmCacheManager.h +++ b/Source/cmCacheManager.h @@ -66,6 +66,9 @@ public: //! Print the cache to a stream void PrintCache(std::ostream&) const; + //! Get whether or not cache is loaded + bool IsCacheLoaded() const { return this->CacheLoaded; } + //! Get a value from the cache given a key cmProp GetInitializedCacheValue(const std::string& key) const; @@ -204,6 +207,7 @@ private: const CacheEntry& e, cmMessenger* messenger) const; std::map<std::string, CacheEntry> Cache; + bool CacheLoaded = false; // Cache version info unsigned int CacheMajorVersion = 0; |