summaryrefslogtreecommitdiff
path: root/Source/cmFindProgramCommand.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-06-01 16:05:34 +0200
committerBrad King <brad.king@kitware.com>2021-06-02 14:55:00 -0400
commit87b71eec6257b0d9c43b446205d61f334278fe7d (patch)
tree727adaa232629c537ca47112fbc3f7fbeec36127 /Source/cmFindProgramCommand.cxx
parent2104cfe388f5d77b98727c89edff453b1d23fed6 (diff)
downloadcmake-87b71eec6257b0d9c43b446205d61f334278fe7d.tar.gz
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/cmFindProgramCommand.cxx')
-rw-r--r--Source/cmFindProgramCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx
index 76fc4a42a3..1c87625e29 100644
--- a/Source/cmFindProgramCommand.cxx
+++ b/Source/cmFindProgramCommand.cxx
@@ -165,7 +165,7 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
return false;
}
- if (this->AlreadyInCache) {
+ if (this->AlreadyDefined) {
this->NormalizeFindResult();
return true;
}