summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-05-01 20:07:26 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2014-05-07 18:30:31 (GMT)
commit6fa6bedf78981d336b66d55ca10a1d290d014101 (patch)
tree01bcbe86eede14cc94f84e2ae0293652e82319db /Source/cmMakefileLibraryTargetGenerator.cxx
parent01b79c6385d32e635b5720d8075a60fd50577c66 (diff)
downloadCMake-6fa6bedf78981d336b66d55ca10a1d290d014101.zip
CMake-6fa6bedf78981d336b66d55ca10a1d290d014101.tar.gz
CMake-6fa6bedf78981d336b66d55ca10a1d290d014101.tar.bz2
LocalGenerator: Add a string overload for AppendFlags
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index 7ac0256..80473f6 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -249,7 +249,7 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
// Create set of linking flags.
std::string linkFlags;
- this->LocalGenerator->AppendFlags(linkFlags, extraFlags.c_str());
+ this->LocalGenerator->AppendFlags(linkFlags, extraFlags);
// Add OSX version flags, if any.
if(this->Target->GetType() == cmTarget::SHARED_LIBRARY ||
@@ -810,6 +810,6 @@ cmMakefileLibraryTargetGenerator
// Append the flag since a non-zero version is specified.
cmOStringStream vflag;
vflag << flag << major << "." << minor << "." << patch;
- this->LocalGenerator->AppendFlags(flags, vflag.str().c_str());
+ this->LocalGenerator->AppendFlags(flags, vflag.str());
}
}