mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
Refactor: cmCommonTargetGenerator::GetFeature returns cmProp
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user