mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-11 16:50:50 -05:00
cmGeneratorExpressionNode: Simplify static string constant
Use our `""_s` user-defined literal to avoid initializing a static std::string.
This commit is contained in:
@@ -21,10 +21,13 @@
|
|||||||
#include "cmStateTypes.h"
|
#include "cmStateTypes.h"
|
||||||
#include "cmSystemTools.h"
|
#include "cmSystemTools.h"
|
||||||
#include "cmTarget.h"
|
#include "cmTarget.h"
|
||||||
|
#include "cm_static_string_view.hxx"
|
||||||
|
#include "cm_string_view.hxx"
|
||||||
#include "cmake.h"
|
#include "cmake.h"
|
||||||
|
|
||||||
#include "cmsys/RegularExpression.hxx"
|
#include "cmsys/RegularExpression.hxx"
|
||||||
#include "cmsys/String.h"
|
#include "cmsys/String.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -1328,8 +1331,7 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
|
|||||||
"Target name not supported.");
|
"Target name not supported.");
|
||||||
return std::string();
|
return std::string();
|
||||||
}
|
}
|
||||||
static const std::string propALIASED_TARGET = "ALIASED_TARGET";
|
if (propertyName == "ALIASED_TARGET"_s) {
|
||||||
if (propertyName == propALIASED_TARGET) {
|
|
||||||
if (context->LG->GetMakefile()->IsAlias(targetName)) {
|
if (context->LG->GetMakefile()->IsAlias(targetName)) {
|
||||||
if (cmGeneratorTarget* tgt =
|
if (cmGeneratorTarget* tgt =
|
||||||
context->LG->FindGeneratorTargetToUse(targetName)) {
|
context->LG->FindGeneratorTargetToUse(targetName)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user