|
|
@@ -187,6 +187,8 @@ cmComputeLinkInformation
|
|
|
// Get options needed to link libraries.
|
|
|
this->LibLinkFlag =
|
|
|
this->Makefile->GetSafeDefinition("CMAKE_LINK_LIBRARY_FLAG");
|
|
|
+ this->LibLinkFileFlag =
|
|
|
+ this->Makefile->GetSafeDefinition("CMAKE_LINK_LIBRARY_FILE_FLAG");
|
|
|
this->LibLinkSuffix =
|
|
|
this->Makefile->GetSafeDefinition("CMAKE_LINK_LIBRARY_SUFFIX");
|
|
|
|
|
|
@@ -622,6 +624,12 @@ void cmComputeLinkInformation::AddTargetItem(std::string const& item,
|
|
|
this->SetCurrentLinkType(LinkShared);
|
|
|
}
|
|
|
|
|
|
+ // If this platform wants a flag before the full path, add it.
|
|
|
+ if(!this->LibLinkFileFlag.empty())
|
|
|
+ {
|
|
|
+ this->Items.push_back(Item(this->LibLinkFileFlag, false));
|
|
|
+ }
|
|
|
+
|
|
|
// Now add the full path to the library.
|
|
|
this->Items.push_back(Item(item, true));
|
|
|
}
|
|
|
@@ -650,6 +658,12 @@ void cmComputeLinkInformation::AddFullItem(std::string const& item)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // If this platform wants a flag before the full path, add it.
|
|
|
+ if(!this->LibLinkFileFlag.empty())
|
|
|
+ {
|
|
|
+ this->Items.push_back(Item(this->LibLinkFileFlag, false));
|
|
|
+ }
|
|
|
+
|
|
|
// Now add the full path to the library.
|
|
|
this->Items.push_back(Item(item, true));
|
|
|
}
|