mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 21:30:01 -05:00
Refactoring: add cm::contains to <cmext/algorithm>
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
|
||||
#include "cmsys/RegularExpression.hxx"
|
||||
|
||||
#include "cmAlgorithms.h"
|
||||
#include "cmComputeLinkInformation.h"
|
||||
#include "cmCustomCommand.h"
|
||||
#include "cmCustomCommandGenerator.h"
|
||||
@@ -363,7 +362,7 @@ cmGlobalXCodeGenerator::GenerateBuildCommand(
|
||||
std::string projectArg = cmStrCat(projectName, ".xcodeproj");
|
||||
makeCommand.Add(projectArg);
|
||||
}
|
||||
if (cmContains(targetNames, "clean")) {
|
||||
if (cm::contains(targetNames, "clean")) {
|
||||
makeCommand.Add("clean");
|
||||
makeCommand.Add("-target", "ALL_BUILD");
|
||||
} else {
|
||||
@@ -911,7 +910,7 @@ void cmGlobalXCodeGenerator::AddXCodeProjBuildRule(
|
||||
"/CMakeLists.txt");
|
||||
cmSourceFile* srcCMakeLists = target->Makefile->GetOrCreateSource(
|
||||
listfile, false, cmSourceFileLocationKind::Known);
|
||||
if (!cmContains(sources, srcCMakeLists)) {
|
||||
if (!cm::contains(sources, srcCMakeLists)) {
|
||||
sources.push_back(srcCMakeLists);
|
||||
}
|
||||
}
|
||||
@@ -1427,8 +1426,8 @@ void cmGlobalXCodeGenerator::ForceLinkerLanguage(cmGeneratorTarget* gtgt)
|
||||
|
||||
bool cmGlobalXCodeGenerator::IsHeaderFile(cmSourceFile* sf)
|
||||
{
|
||||
return cmContains(this->CMakeInstance->GetHeaderExtensions(),
|
||||
sf->GetExtension());
|
||||
return cm::contains(this->CMakeInstance->GetHeaderExtensions(),
|
||||
sf->GetExtension());
|
||||
}
|
||||
|
||||
cmXCodeObject* cmGlobalXCodeGenerator::CreateBuildPhase(
|
||||
|
||||
Reference in New Issue
Block a user