summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-09-20 21:24:20 (GMT)
committerStephen Kelly <steveire@gmail.com>2012-09-21 11:28:54 (GMT)
commitb7e48e0acbd0cd30f803ec8c2d402c636beba778 (patch)
tree18ec056ad457adab2c054fc46c6ea6a5a2b88715
parent9a160871d0bc4233a71dfbf2ffcc888a940bb921 (diff)
downloadCMake-b7e48e0acbd0cd30f803ec8c2d402c636beba778.zip
CMake-b7e48e0acbd0cd30f803ec8c2d402c636beba778.tar.gz
CMake-b7e48e0acbd0cd30f803ec8c2d402c636beba778.tar.bz2
Add an AppendDefines std::string overload.
This makes it easier to use with cmGeneratorTarget::GetCompileDefinitions.
-rw-r--r--Source/cmLocalGenerator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
index 0916d44..9aaacf7 100644
--- a/Source/cmLocalGenerator.h
+++ b/Source/cmLocalGenerator.h
@@ -157,6 +157,11 @@ public:
*/
void AppendDefines(std::set<std::string>& defines,
const char* defines_list);
+ void AppendDefines(std::set<std::string>& defines,
+ std::string defines_list)
+ {
+ this->AppendDefines(defines, defines_list.c_str());
+ }
/**
* Join a set of defines into a definesString with a space separator.
*/