diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-11-29 20:45:49 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-11-29 20:45:49 (GMT) |
commit | d6219588c049c8d7ca1b328d918e410e9385f0c8 (patch) | |
tree | 2265c937fa2497e1c7aee4fbd942da0bf8108850 /Source/cmTarget.cxx | |
parent | 965a1475b64d7db1466f8312db8938b158b0cfe3 (diff) | |
download | CMake-d6219588c049c8d7ca1b328d918e410e9385f0c8.zip CMake-d6219588c049c8d7ca1b328d918e410e9385f0c8.tar.gz CMake-d6219588c049c8d7ca1b328d918e410e9385f0c8.tar.bz2 |
COMP: fix compile issue on Sun
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 04712c0..e79b93d 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -464,8 +464,10 @@ void cmTarget::AddLinkLibrary(const std::string& lib, LinkLibraryType llt) { this->AddFramework(lib.c_str(), llt); - this->LinkLibraries.push_back( std::pair<std::string, - cmTarget::LinkLibraryType>(lib,llt) ); + std::pair<std::string, cmTarget::LinkLibraryType> tmp; + tmp.first = lib; + tmp.second = llt; + this->LinkLibraries.push_back(tmp); } bool cmTarget::AddFramework(const std::string& libname, LinkLibraryType llt) @@ -497,8 +499,10 @@ void cmTarget::AddLinkLibrary(cmMakefile& mf, return; } this->AddFramework(lib, llt); - this->LinkLibraries.push_back( std::pair<std::string, - cmTarget::LinkLibraryType>(lib,llt) ); + std::pair<std::string, cmTarget::LinkLibraryType> tmp; + tmp.first = lib; + tmp.second = llt; + this->LinkLibraries.push_back( tmp ); // Add the explicit dependency information for this target. This is // simply a set of libraries separated by ";". There should always |