COMP: fix compile issue on Sun
This commit is contained in:
parent
965a1475b6
commit
d6219588c0
@ -911,8 +911,10 @@ void cmMakefile::RemoveDefineFlag(const char* flag)
|
|||||||
void cmMakefile::AddLinkLibrary(const char* lib,
|
void cmMakefile::AddLinkLibrary(const char* lib,
|
||||||
cmTarget::LinkLibraryType llt)
|
cmTarget::LinkLibraryType llt)
|
||||||
{
|
{
|
||||||
this->LinkLibraries.push_back(
|
std::pair<std::string, cmTarget::LinkLibraryType> tmp;
|
||||||
std::pair<std::string, cmTarget::LinkLibraryType>(lib,llt));
|
tmp.first = lib;
|
||||||
|
tmp.second = llt;
|
||||||
|
this->LinkLibraries.push_back(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmMakefile::AddLinkLibraryForTarget(const char *target,
|
void cmMakefile::AddLinkLibraryForTarget(const char *target,
|
||||||
|
@ -464,8 +464,10 @@ void cmTarget::AddLinkLibrary(const std::string& lib,
|
|||||||
LinkLibraryType llt)
|
LinkLibraryType llt)
|
||||||
{
|
{
|
||||||
this->AddFramework(lib.c_str(), llt);
|
this->AddFramework(lib.c_str(), llt);
|
||||||
this->LinkLibraries.push_back( std::pair<std::string,
|
std::pair<std::string, cmTarget::LinkLibraryType> tmp;
|
||||||
cmTarget::LinkLibraryType>(lib,llt) );
|
tmp.first = lib;
|
||||||
|
tmp.second = llt;
|
||||||
|
this->LinkLibraries.push_back(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cmTarget::AddFramework(const std::string& libname, LinkLibraryType llt)
|
bool cmTarget::AddFramework(const std::string& libname, LinkLibraryType llt)
|
||||||
@ -497,8 +499,10 @@ void cmTarget::AddLinkLibrary(cmMakefile& mf,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this->AddFramework(lib, llt);
|
this->AddFramework(lib, llt);
|
||||||
this->LinkLibraries.push_back( std::pair<std::string,
|
std::pair<std::string, cmTarget::LinkLibraryType> tmp;
|
||||||
cmTarget::LinkLibraryType>(lib,llt) );
|
tmp.first = lib;
|
||||||
|
tmp.second = llt;
|
||||||
|
this->LinkLibraries.push_back( tmp );
|
||||||
|
|
||||||
// Add the explicit dependency information for this target. This is
|
// Add the explicit dependency information for this target. This is
|
||||||
// simply a set of libraries separated by ";". There should always
|
// simply a set of libraries separated by ";". There should always
|
||||||
|
Loading…
x
Reference in New Issue
Block a user