Refactoring: add cm::contains to <cmext/algorithm>

This commit is contained in:
Marc Chevrier
2020-04-13 12:11:31 +02:00
parent 9a450bcfec
commit aacd4e4a90
39 changed files with 259 additions and 186 deletions
+3 -2
View File
@@ -6,7 +6,8 @@
#include <set>
#include <utility>
#include "cmAlgorithms.h"
#include <cmext/algorithm>
#include "cmComputeLinkInformation.h"
#include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h"
@@ -188,7 +189,7 @@ bool requireDeviceLinking(cmGeneratorTarget& target, cmLocalGenerator& lg,
cmGeneratorTarget::LinkClosure const* closure =
target.GetLinkClosure(config);
if (cmContains(closure->Languages, "CUDA")) {
if (cm::contains(closure->Languages, "CUDA")) {
if (const char* separableCompilation =
target.GetProperty("CUDA_SEPARABLE_COMPILATION")) {
if (cmIsOn(separableCompilation)) {