diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-09-17 09:56:48 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-09-17 09:58:46 (GMT) |
commit | 7e154ebd59724d43bf29a8e1c648d6cf7f0e61e4 (patch) | |
tree | 1af10b5267eb0f9821313bb3eb47900b2d205fe8 /Source/cmMakefile.cxx | |
parent | 241048d6ceb5dd4a16950c29286aebbcc46e565c (diff) | |
download | CMake-7e154ebd59724d43bf29a8e1c648d6cf7f0e61e4.zip CMake-7e154ebd59724d43bf29a8e1c648d6cf7f0e61e4.tar.gz CMake-7e154ebd59724d43bf29a8e1c648d6cf7f0e61e4.tar.bz2 |
cmSystemTools::VersionCompare: use std::string for arguments
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index ef31d76..f9b2562 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -926,8 +926,7 @@ void cmMakefile::Generate(cmLocalGenerator& lg) this->DoGenerate(lg); cmProp oldValue = this->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY"); if (oldValue && - cmSystemTools::VersionCompare(cmSystemTools::OP_LESS, oldValue->c_str(), - "2.4")) { + cmSystemTools::VersionCompare(cmSystemTools::OP_LESS, oldValue, "2.4")) { this->GetCMakeInstance()->IssueMessage( MessageType::FATAL_ERROR, "You have set CMAKE_BACKWARDS_COMPATIBILITY to a CMake version less " |