mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-24 19:59:47 +08:00
Add an AppendDefines std::string overload.
This makes it easier to use with cmGeneratorTarget::GetCompileDefinitions.
This commit is contained in:
@@ -157,6 +157,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
void AppendDefines(std::set<std::string>& defines,
|
void AppendDefines(std::set<std::string>& defines,
|
||||||
const char* defines_list);
|
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.
|
* Join a set of defines into a definesString with a space separator.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user