summaryrefslogtreecommitdiffstats
path: root/Source/cmGetFilenameComponentCommand.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/cmGetFilenameComponentCommand.cxx
parent5e661c66393328896f7a24f50b9f84fe8dd5f029 (diff)
downloadCMake-f58d7df66a4cbfd171ae27eb0beaf12cf5355c08.zip
CMake-f58d7df66a4cbfd171ae27eb0beaf12cf5355c08.tar.gz
CMake-f58d7df66a4cbfd171ae27eb0beaf12cf5355c08.tar.bz2
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 2fded7e..55f24a3 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;
}