mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
BUG: Need to match shared library names before static because some platforms have static name patterns that match their shared patterns but not vice versa. This is needed for implementing bug#1644 on cygwin.
This commit is contained in:
@@ -1716,14 +1716,18 @@ void cmLocalGenerator
|
||||
this->Makefile->GetDefinition("CMAKE_STATIC_LIBRARY_PREFIX"));
|
||||
orderLibs.AddLinkPrefix(
|
||||
this->Makefile->GetDefinition("CMAKE_SHARED_LIBRARY_PREFIX"));
|
||||
|
||||
// Import library names should be matched and treated as shared
|
||||
// libraries for the purposes of linking.
|
||||
orderLibs.AddLinkExtension(
|
||||
this->Makefile->GetDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX"),
|
||||
cmOrderLinkDirectories::LinkShared);
|
||||
orderLibs.AddLinkExtension(
|
||||
this->Makefile->GetDefinition("CMAKE_STATIC_LIBRARY_SUFFIX"),
|
||||
cmOrderLinkDirectories::LinkStatic);
|
||||
orderLibs.AddLinkExtension(
|
||||
this->Makefile->GetDefinition("CMAKE_SHARED_LIBRARY_SUFFIX"),
|
||||
cmOrderLinkDirectories::LinkShared);
|
||||
orderLibs.AddLinkExtension(
|
||||
this->Makefile->GetDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX"));
|
||||
orderLibs.AddLinkExtension(
|
||||
this->Makefile->GetDefinition("CMAKE_LINK_LIBRARY_SUFFIX"));
|
||||
if(const char* linkSuffixes =
|
||||
|
||||
Reference in New Issue
Block a user