mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
Refactoring: add cm::contains to <cmext/algorithm>
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user