summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPathCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-01-31 18:50:42 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-01-31 18:50:42 (GMT)
commitf58d7df66a4cbfd171ae27eb0beaf12cf5355c08 (patch)
treeef63fcade1fda3aab970cc0566a66fa085edc1a2 /Source/cmFindPathCommand.cxx
parent5e661c66393328896f7a24f50b9f84fe8dd5f029 (diff)
downloadCMake-f58d7df66a4cbfd171ae27eb0beaf12cf5355c08.zip
CMake-f58d7df66a4cbfd171ae27eb0beaf12cf5355c08.tar.gz
CMake-f58d7df66a4cbfd171ae27eb0beaf12cf5355c08.tar.bz2
ENH: add checking for NOTFOUND
Diffstat (limited to 'Source/cmFindPathCommand.cxx')
-rw-r--r--Source/cmFindPathCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx
index 6261187..3385582 100644
--- a/Source/cmFindPathCommand.cxx
+++ b/Source/cmFindPathCommand.cxx
@@ -50,7 +50,7 @@ bool cmFindPathCommand::InitialPass(std::vector<std::string> const& argsIn)
const char* cacheValue
= m_Makefile->GetDefinition(args[0].c_str());
- if(cacheValue && strcmp(cacheValue, "NOTFOUND"))
+ if(cacheValue && !cmSystemTools::IsNOTFOUND(cacheValue))
{
return true;
}
@@ -100,7 +100,7 @@ bool cmFindPathCommand::InitialPass(std::vector<std::string> const& argsIn)
}
m_Makefile->AddCacheDefinition(args[0].c_str(),
- "NOTFOUND",
+ (args[0] + "-NOTFOUND").c_str(),
helpString.c_str(),
cmCacheManager::PATH);
return true;