summaryrefslogtreecommitdiffstats
path: root/Source/cmFindFileCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-04-26 13:38:31 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-04-26 13:38:31 (GMT)
commit30ad61805bbb5b34e2bf17cb36ce2e9601ed0f25 (patch)
tree5b3fcc1f4f7c87868910d1714f9d08ede81afbd0 /Source/cmFindFileCommand.cxx
parentab7f884a444d929c5598a8384526e5f4044bc515 (diff)
downloadCMake-30ad61805bbb5b34e2bf17cb36ce2e9601ed0f25.zip
CMake-30ad61805bbb5b34e2bf17cb36ce2e9601ed0f25.tar.gz
CMake-30ad61805bbb5b34e2bf17cb36ce2e9601ed0f25.tar.bz2
bug fixes
Diffstat (limited to 'Source/cmFindFileCommand.cxx')
-rw-r--r--Source/cmFindFileCommand.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmFindFileCommand.cxx b/Source/cmFindFileCommand.cxx
index 39f1371..a5a679a 100644
--- a/Source/cmFindFileCommand.cxx
+++ b/Source/cmFindFileCommand.cxx
@@ -38,7 +38,10 @@ bool cmFindFileCommand::Invoke(std::vector<std::string>& args)
= cmCacheManager::GetInstance()->GetCacheValue(define);
if(cacheValue)
{
- m_Makefile->AddDefinition(define, cacheValue);
+ if(strcmp(cacheValue, "NOTFOUND") != 0)
+ {
+ m_Makefile->AddDefinition(define, cacheValue);
+ }
return true;
}
// if it is not in the cache, then search the system path