mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 13:19:51 -05:00
cmAlgorithms: Add cmContains
Also, use the new function where applicable.
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
#include "cmTargetExport.h"
|
||||
#include "cmake.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
@@ -306,7 +305,7 @@ cmExportBuildFileGenerator::FindBuildExportInfo(cmGlobalGenerator* gg,
|
||||
const cmExportBuildFileGenerator* exportSet = exp.second;
|
||||
std::vector<std::string> targets;
|
||||
exportSet->GetTargets(targets);
|
||||
if (std::find(targets.begin(), targets.end(), name) != targets.end()) {
|
||||
if (cmContains(targets, name)) {
|
||||
exportFiles.push_back(exp.first);
|
||||
ns = exportSet->GetNamespace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user