summaryrefslogtreecommitdiff
path: root/Source/cmFindFileCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-09-17 16:34:41 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2001-09-17 16:34:41 -0400
commit11269bb1c49144d5e0ec6c3382adda679e91c261 (patch)
tree09f29dbee3449cb25acdb97fccc5436f4b65fcf2 /Source/cmFindFileCommand.cxx
parent0598697998b6a1c76ef8f5ea71c65021aab4cbfc (diff)
downloadcmake-11269bb1c49144d5e0ec6c3382adda679e91c261.tar.gz
BUG: fix return when file is not found
Diffstat (limited to 'Source/cmFindFileCommand.cxx')
-rw-r--r--Source/cmFindFileCommand.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmFindFileCommand.cxx b/Source/cmFindFileCommand.cxx
index 80bc161e49..c3b83c9180 100644
--- a/Source/cmFindFileCommand.cxx
+++ b/Source/cmFindFileCommand.cxx
@@ -96,6 +96,10 @@ bool cmFindFileCommand::InitialPass(std::vector<std::string>& args)
return true;
}
}
- return false;
+ m_Makefile->AddCacheDefinition(args[0].c_str(),
+ "NOTFOUND",
+ helpString.c_str(),
+ cmCacheManager::PATH);
+ return true;
}