diff options
author | Brad King <brad.king@kitware.com> | 2003-08-08 13:14:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-08-08 13:14:33 (GMT) |
commit | 1346a0f34e55df264e722674cdcbfd3aa844c026 (patch) | |
tree | a719e4b0d49390a1464cc2f7bd294a5309e7d838 /Source/cmFindPackageCommand.cxx | |
parent | 967d1b4c6fc025019ae5f52eb4aaa56f4fc95947 (diff) | |
download | CMake-1346a0f34e55df264e722674cdcbfd3aa844c026.zip CMake-1346a0f34e55df264e722674cdcbfd3aa844c026.tar.gz CMake-1346a0f34e55df264e722674cdcbfd3aa844c026.tar.bz2 |
ERR: Fixed use of != operator for std::string on old broken compilers.
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r-- | Source/cmFindPackageCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index 5d3961a..6da96e6 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -98,7 +98,7 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args) upperDir += "_DIR"; upperFound += "_FOUND"; bool needCompatibility = false; - if(upperDir != this->Variable) + if(!(upperDir == this->Variable)) { const char* versionValue = 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())); } - if(upperDir != this->Variable) + if(!(upperDir == this->Variable)) { if(needCompatibility) { |