summaryrefslogtreecommitdiffstats
path: root/Source/cmFindFileCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-04-30 18:56:06 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-04-30 18:56:06 (GMT)
commit2fb2207c1025f86cc5b62faf8c3a1ca15ea18152 (patch)
tree3238682d3b82c1a09285b0942b0e62ee390f0b08 /Source/cmFindFileCommand.cxx
parente7519358e748e66f88b7c277a6d59fff502dad4a (diff)
downloadCMake-2fb2207c1025f86cc5b62faf8c3a1ca15ea18152.zip
CMake-2fb2207c1025f86cc5b62faf8c3a1ca15ea18152.tar.gz
CMake-2fb2207c1025f86cc5b62faf8c3a1ca15ea18152.tar.bz2
bug fixes
Diffstat (limited to 'Source/cmFindFileCommand.cxx')
-rw-r--r--Source/cmFindFileCommand.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmFindFileCommand.cxx b/Source/cmFindFileCommand.cxx
index 2128356..009f291 100644
--- a/Source/cmFindFileCommand.cxx
+++ b/Source/cmFindFileCommand.cxx
@@ -63,17 +63,14 @@ bool cmFindFileCommand::Invoke(std::vector<std::string>& args)
helpString += args[1] + " file be found";
const char* cacheValue
= cmCacheManager::GetInstance()->GetCacheValue(define);
- if(cacheValue)
+ if(cacheValue && strcmp(cacheValue, "NOTFOUND"))
{
- if(strcmp(cacheValue, "NOTFOUND") != 0)
- {
m_Makefile->AddDefinition(define, cacheValue);
// update help string if changed
cmCacheManager::GetInstance()->AddCacheEntry(define,
cacheValue,
helpString.c_str(),
cmCacheManager::FILEPATH);
- }
return true;
}
// if it is not in the cache, then search the system path