summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-03-22 16:10:58 (GMT)
committerBrad King <brad.king@kitware.com>2006-03-22 16:10:58 (GMT)
commit0376fe4b9becff8de75e81a15c67b40014b19ce3 (patch)
tree7b0ca176b8c5e1ad2d01f7de9a2106a6b021c8f2 /Source/cmLocalGenerator.cxx
parent3806c1050d496953f5b9ae519bb1ca345b45dfbf (diff)
downloadCMake-0376fe4b9becff8de75e81a15c67b40014b19ce3.zip
CMake-0376fe4b9becff8de75e81a15c67b40014b19ce3.tar.gz
CMake-0376fe4b9becff8de75e81a15c67b40014b19ce3.tar.bz2
ENH: Added support for linking to MS .lib libraries in MinGW.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 3a8a2f1..7a97cb4 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1319,7 +1319,20 @@ cmLocalGenerator::ComputeLinkInformation(cmTarget& target,
orderLibs.AddLinkExtension(
this->Makefile->GetDefinition("CMAKE_SHARED_LIBRARY_SUFFIX"));
orderLibs.AddLinkExtension(
+ this->Makefile->GetDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX"));
+ orderLibs.AddLinkExtension(
this->Makefile->GetDefinition("CMAKE_LINK_LIBRARY_SUFFIX"));
+ if(const char* linkSuffixes =
+ this->Makefile->GetDefinition("CMAKE_EXTRA_LINK_EXTENSIONS"))
+ {
+ std::vector<std::string> linkSuffixVec;
+ cmSystemTools::ExpandListArgument(linkSuffixes, linkSuffixVec);
+ for(std::vector<std::string>::iterator i = linkSuffixVec.begin();
+ i != linkSuffixVec.end(); ++i)
+ {
+ orderLibs.AddLinkExtension(i->c_str());
+ }
+ }
orderLibs.SetLinkInformation(target.GetName(),
linkLibraries,
linkDirectories);