|
@@ -63,17 +63,14 @@ bool cmFindFileCommand::Invoke(std::vector<std::string>& args)
|
|
|
helpString += args[1] + " file be found";
|
|
helpString += args[1] + " file be found";
|
|
|
const char* cacheValue
|
|
const char* cacheValue
|
|
|
= cmCacheManager::GetInstance()->GetCacheValue(define);
|
|
= cmCacheManager::GetInstance()->GetCacheValue(define);
|
|
|
- if(cacheValue)
|
|
|
|
|
|
|
+ if(cacheValue && strcmp(cacheValue, "NOTFOUND"))
|
|
|
{
|
|
{
|
|
|
- if(strcmp(cacheValue, "NOTFOUND") != 0)
|
|
|
|
|
- {
|
|
|
|
|
m_Makefile->AddDefinition(define, cacheValue);
|
|
m_Makefile->AddDefinition(define, cacheValue);
|
|
|
// update help string if changed
|
|
// update help string if changed
|
|
|
cmCacheManager::GetInstance()->AddCacheEntry(define,
|
|
cmCacheManager::GetInstance()->AddCacheEntry(define,
|
|
|
cacheValue,
|
|
cacheValue,
|
|
|
helpString.c_str(),
|
|
helpString.c_str(),
|
|
|
cmCacheManager::FILEPATH);
|
|
cmCacheManager::FILEPATH);
|
|
|
- }
|
|
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
// if it is not in the cache, then search the system path
|
|
// if it is not in the cache, then search the system path
|