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/cmFindProgramCommand.cxx | |
parent | 5e661c66393328896f7a24f50b9f84fe8dd5f029 (diff) | |
download | cmake-f58d7df66a4cbfd171ae27eb0beaf12cf5355c08.tar.gz |
ENH: add checking for NOTFOUND
Diffstat (limited to 'Source/cmFindProgramCommand.cxx')
-rw-r--r-- | Source/cmFindProgramCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx index 84f7dab2ac..6b94d71450 100644 --- a/Source/cmFindProgramCommand.cxx +++ b/Source/cmFindProgramCommand.cxx @@ -55,7 +55,7 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn) // already, if so use that value and don't look for the program const char* cacheValue = m_Makefile->GetDefinition(define); - if(cacheValue && strcmp(cacheValue, "NOTFOUND")) + if(cacheValue && !cmSystemTools::IsNOTFOUND(cacheValue)) { return true; } @@ -141,7 +141,7 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn) } } m_Makefile->AddCacheDefinition(args[0].c_str(), - "NOTFOUND", + (args[0] + "-NOTFOUND").c_str(), doc.c_str(), cmCacheManager::FILEPATH); return true; |