mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
Cleanups: Use cmHas{Prefix,Suffix} instead of String{Starts,Ends}With
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "cmMakefile.h"
|
||||
#include "cmStateTypes.h"
|
||||
#include "cmStringAlgorithms.h"
|
||||
#include "cmSystemTools.h"
|
||||
|
||||
class cmExecutionStatus;
|
||||
@@ -71,7 +72,7 @@ struct cmFindProgramHelper
|
||||
bool CheckDirectoryForName(std::string const& path, std::string const& name)
|
||||
{
|
||||
for (std::string const& ext : this->Extensions) {
|
||||
if (!ext.empty() && cmSystemTools::StringEndsWith(name, ext.c_str())) {
|
||||
if (!ext.empty() && cmHasSuffix(name, ext)) {
|
||||
continue;
|
||||
}
|
||||
this->TestNameExt = name;
|
||||
|
||||
Reference in New Issue
Block a user