summaryrefslogtreecommitdiffstats
path: root/Source/cmFindFileCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-09-17 20:34:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-09-17 20:34:41 (GMT)
commit11269bb1c49144d5e0ec6c3382adda679e91c261 (patch)
tree09f29dbee3449cb25acdb97fccc5436f4b65fcf2 /Source/cmFindFileCommand.cxx
parent0598697998b6a1c76ef8f5ea71c65021aab4cbfc (diff)
downloadCMake-11269bb1c49144d5e0ec6c3382adda679e91c261.zip
CMake-11269bb1c49144d5e0ec6c3382adda679e91c261.tar.gz
CMake-11269bb1c49144d5e0ec6c3382adda679e91c261.tar.bz2
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 80bc161..c3b83c9 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;
}