ERR: Fixed use of != operator for std::string on old broken compilers.

This commit is contained in:
Brad King 2003-08-08 09:14:33 -04:00
parent 967d1b4c6f
commit 1346a0f34e
1 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args)
upperDir += "_DIR"; upperDir += "_DIR";
upperFound += "_FOUND"; upperFound += "_FOUND";
bool needCompatibility = false; bool needCompatibility = false;
if(upperDir != this->Variable) if(!(upperDir == this->Variable))
{ {
const char* versionValue = const char* versionValue =
m_Makefile->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY"); m_Makefile->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
@ -183,7 +183,7 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args)
m_Makefile->GetDefinition(foundVar.c_str())); m_Makefile->GetDefinition(foundVar.c_str()));
} }
if(upperDir != this->Variable) if(!(upperDir == this->Variable))
{ {
if(needCompatibility) if(needCompatibility)
{ {