cmGeneratorTarget: Port internal type to cmGeneratorTarget.
This commit is contained in:
parent
32f131b0ca
commit
193699376a
|
@ -36,7 +36,7 @@
|
|||
|
||||
//----------------------------------------------------------------------------
|
||||
void reportBadObjLib(std::vector<cmSourceFile*> const& badObjLib,
|
||||
cmTarget *target, cmake *cm)
|
||||
cmGeneratorTarget const* target, cmake *cm)
|
||||
{
|
||||
if(!badObjLib.empty())
|
||||
{
|
||||
|
@ -50,7 +50,7 @@ void reportBadObjLib(std::vector<cmSourceFile*> const& badObjLib,
|
|||
e << "but may contain only sources that compile, header files, and "
|
||||
"other files that would not affect linking of a normal library.";
|
||||
cm->IssueMessage(cmake::FATAL_ERROR, e.str(),
|
||||
target->GetBacktrace());
|
||||
target->Target->GetBacktrace());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -133,14 +133,14 @@ struct TagVisitor
|
|||
{
|
||||
DataType& Data;
|
||||
std::vector<cmSourceFile*> BadObjLibFiles;
|
||||
cmTarget *Target;
|
||||
cmGeneratorTarget const* Target;
|
||||
cmGlobalGenerator *GlobalGenerator;
|
||||
cmsys::RegularExpression Header;
|
||||
bool IsObjLib;
|
||||
|
||||
TagVisitor(cmTarget *target, DataType& data)
|
||||
TagVisitor(cmGeneratorTarget const* target, DataType& data)
|
||||
: Data(data), Target(target),
|
||||
GlobalGenerator(target->GetMakefile()->GetGlobalGenerator()),
|
||||
GlobalGenerator(target->GetLocalGenerator()->GetGlobalGenerator()),
|
||||
Header(CM_HEADER_REGEX),
|
||||
IsObjLib(target->GetType() == cmTarget::OBJECT_LIBRARY)
|
||||
{
|
||||
|
@ -362,7 +362,7 @@ static void handleSystemIncludesDep(cmMakefile *mf, cmTarget const* depTgt,
|
|||
{ \
|
||||
std::vector<cmSourceFile*> sourceFiles; \
|
||||
this->Target->GetSourceFiles(sourceFiles, config); \
|
||||
TagVisitor<DATA ## Tag DATATYPE> visitor(this->Target, data); \
|
||||
TagVisitor<DATA ## Tag DATATYPE> visitor(this, data); \
|
||||
for(std::vector<cmSourceFile*>::const_iterator si = sourceFiles.begin(); \
|
||||
si != sourceFiles.end(); ++si) \
|
||||
{ \
|
||||
|
|
Loading…
Reference in New Issue