summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-24 17:53:29 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-24 17:54:40 (GMT)
commit59eda7fa0abf2a39980ee35f35a5e6ffac31891b (patch)
tree6813ad5bedbc6f0b0b0eb083ea8d7035003a2198 /Source
parent0c8a2c4a86afdd1e196318b7cd7c8635b6158871 (diff)
downloadCMake-59eda7fa0abf2a39980ee35f35a5e6ffac31891b.zip
CMake-59eda7fa0abf2a39980ee35f35a5e6ffac31891b.tar.gz
CMake-59eda7fa0abf2a39980ee35f35a5e6ffac31891b.tar.bz2
cmPolicies: use `cmStrCat` for string additions
Diffstat (limited to 'Source')
-rw-r--r--Source/cmPolicies.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx
index 119d908..c2d5f6d 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -139,7 +139,7 @@ static void DiagnoseAncientPolicies(
static bool GetPolicyDefault(cmMakefile* mf, std::string const& policy,
cmPolicies::PolicyStatus* defaultSetting)
{
- std::string defaultVar = "CMAKE_POLICY_DEFAULT_" + policy;
+ std::string defaultVar = cmStrCat("CMAKE_POLICY_DEFAULT_", policy);
std::string const& defaultValue = mf->GetSafeDefinition(defaultVar);
if (defaultValue == "NEW") {
*defaultSetting = cmPolicies::NEW;