diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-05-03 12:16:07 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-05-12 09:11:56 (GMT) |
commit | 08db1341a60035b303a20eb3f23126a661323c27 (patch) | |
tree | 630f9ef295e76567a59ac567d7466eec432aa5e9 /Source/cmMakefile.cxx | |
parent | f5fa6d53b07d5c6224de2a491856a36fe3516218 (diff) | |
download | CMake-08db1341a60035b303a20eb3f23126a661323c27.zip CMake-08db1341a60035b303a20eb3f23126a661323c27.tar.gz CMake-08db1341a60035b303a20eb3f23126a661323c27.tar.bz2 |
find_*: ensure consistent behavior for cache variables
Fixes: #22121
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 5a37bb9..f7e81bc 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1963,6 +1963,8 @@ void cmMakefile::AddCacheDefinition(const std::string& name, const char* value, } this->GetCMakeInstance()->AddCacheEntry(name, value, doc, type); // if there was a definition then remove it + // The method cmFindBase::NormalizeFindResult also apply same workflow. + // See #22038 for problems raised by this behavior. this->StateSnapshot.RemoveDefinition(name); } |