diff options
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 84f7dab..6b94d71 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; |