diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-01-31 13:50:42 -0500 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-01-31 13:50:42 -0500 |
commit | f58d7df66a4cbfd171ae27eb0beaf12cf5355c08 (patch) | |
tree | ef63fcade1fda3aab970cc0566a66fa085edc1a2 /Source/cmFindPathCommand.cxx | |
parent | 5e661c66393328896f7a24f50b9f84fe8dd5f029 (diff) | |
download | cmake-f58d7df66a4cbfd171ae27eb0beaf12cf5355c08.tar.gz |
ENH: add checking for NOTFOUND
Diffstat (limited to 'Source/cmFindPathCommand.cxx')
-rw-r--r-- | Source/cmFindPathCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx index 6261187aca..3385582b8b 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; |