summaryrefslogtreecommitdiff
path: root/Source/cmGetFilenameComponentCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-01-31 13:50:42 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2003-01-31 13:50:42 -0500
commitf58d7df66a4cbfd171ae27eb0beaf12cf5355c08 (patch)
treeef63fcade1fda3aab970cc0566a66fa085edc1a2 /Source/cmGetFilenameComponentCommand.cxx
parent5e661c66393328896f7a24f50b9f84fe8dd5f029 (diff)
downloadcmake-f58d7df66a4cbfd171ae27eb0beaf12cf5355c08.tar.gz
ENH: add checking for NOTFOUND
Diffstat (limited to 'Source/cmGetFilenameComponentCommand.cxx')
-rw-r--r--Source/cmGetFilenameComponentCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGetFilenameComponentCommand.cxx b/Source/cmGetFilenameComponentCommand.cxx
index 2fded7ea97..55f24a351a 100644
--- a/Source/cmGetFilenameComponentCommand.cxx
+++ b/Source/cmGetFilenameComponentCommand.cxx
@@ -31,7 +31,7 @@ bool cmGetFilenameComponentCommand::InitialPass(std::vector<std::string> const&
if(args.size() == 4 && args[3] == "CACHE")
{
const char* cacheValue = m_Makefile->GetDefinition(args[0].c_str());
- if(cacheValue && strcmp(cacheValue, "NOTFOUND"))
+ if(cacheValue && !cmSystemTools::IsNOTFOUND(cacheValue))
{
return true;
}