Refactor: cmCommonTargetGenerator::GetFeature returns cmProp

This commit is contained in:
Marc Chevrier
2021-08-09 17:28:31 +02:00
parent 7e3250da2f
commit 791337f181
2 changed files with 6 additions and 5 deletions

View File

@@ -39,10 +39,10 @@ std::vector<std::string> const& cmCommonTargetGenerator::GetConfigNames() const
return this->ConfigNames;
}
const char* cmCommonTargetGenerator::GetFeature(const std::string& feature,
const std::string& config)
cmProp cmCommonTargetGenerator::GetFeature(const std::string& feature,
const std::string& config)
{
return this->GeneratorTarget->GetFeature(feature, config)->c_str();
return this->GeneratorTarget->GetFeature(feature, config);
}
void cmCommonTargetGenerator::AddModuleDefinitionFlag(

View File

@@ -8,6 +8,8 @@
#include <string>
#include <vector>
#include "cmProperty.h"
class cmGeneratorTarget;
class cmGlobalCommonGenerator;
class cmLinkLineComputer;
@@ -28,8 +30,7 @@ public:
protected:
// Feature query methods.
const char* GetFeature(const std::string& feature,
const std::string& config);
cmProp GetFeature(const std::string& feature, const std::string& config);
// Helper to add flag for windows .def file.
void AddModuleDefinitionFlag(cmLinkLineComputer* linkLineComputer,