summaryrefslogtreecommitdiffstats
path: root/Source/cmCommonTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-05 14:31:56 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-05 14:31:56 (GMT)
commit5acf0de1feb83a8ec5d8f1348091501919b17cad (patch)
tree0d95a98e98ed5832159b97cbf8bc2fd521d7d3e1 /Source/cmCommonTargetGenerator.cxx
parent6db8f6a410d99e9a66847530bb520b329d2f1a9e (diff)
downloadCMake-5acf0de1feb83a8ec5d8f1348091501919b17cad.zip
CMake-5acf0de1feb83a8ec5d8f1348091501919b17cad.tar.gz
CMake-5acf0de1feb83a8ec5d8f1348091501919b17cad.tar.bz2
cmLocalGenerator: Remove AppendFlags 'const char*' overload
Update call sites to ensure the `std::string` argument can be constructed safely.
Diffstat (limited to 'Source/cmCommonTargetGenerator.cxx')
-rw-r--r--Source/cmCommonTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCommonTargetGenerator.cxx b/Source/cmCommonTargetGenerator.cxx
index 49db505..54443f2 100644
--- a/Source/cmCommonTargetGenerator.cxx
+++ b/Source/cmCommonTargetGenerator.cxx
@@ -90,7 +90,7 @@ void cmCommonTargetGenerator::AppendFortranFormatFlags(
}
if (var) {
this->LocalCommonGenerator->AppendFlags(
- flags, this->Makefile->GetDefinition(var));
+ flags, this->Makefile->GetSafeDefinition(var));
}
}