|
@@ -514,7 +514,8 @@ void cmComputeLinkInformation::AddItem(std::string const& item, cmTarget* tgt)
|
|
|
// platform. Add it now.
|
|
// platform. Add it now.
|
|
|
std::string linkItem;
|
|
std::string linkItem;
|
|
|
linkItem = this->LoaderFlag;
|
|
linkItem = this->LoaderFlag;
|
|
|
- std::string exe = tgt->GetFullPath(config, this->UseImportLibrary);
|
|
|
|
|
|
|
+ std::string exe = tgt->GetFullPath(config, this->UseImportLibrary,
|
|
|
|
|
+ true);
|
|
|
linkItem += exe;
|
|
linkItem += exe;
|
|
|
this->Items.push_back(Item(linkItem, true));
|
|
this->Items.push_back(Item(linkItem, true));
|
|
|
this->Depends.push_back(exe);
|
|
this->Depends.push_back(exe);
|
|
@@ -527,7 +528,7 @@ void cmComputeLinkInformation::AddItem(std::string const& item, cmTarget* tgt)
|
|
|
(impexe || tgt->GetType() == cmTarget::SHARED_LIBRARY));
|
|
(impexe || tgt->GetType() == cmTarget::SHARED_LIBRARY));
|
|
|
|
|
|
|
|
// Pass the full path to the target file.
|
|
// Pass the full path to the target file.
|
|
|
- std::string lib = tgt->GetFullPath(config, implib);
|
|
|
|
|
|
|
+ std::string lib = tgt->GetFullPath(config, implib, true);
|
|
|
this->Depends.push_back(lib);
|
|
this->Depends.push_back(lib);
|
|
|
|
|
|
|
|
if(tgt->IsFrameworkOnApple())
|
|
if(tgt->IsFrameworkOnApple())
|
|
@@ -1254,14 +1255,13 @@ cmComputeLinkInformation::AddLibraryRuntimeInfo(std::string const& fullPath,
|
|
|
std::string soName = target->GetSOName(this->Config);
|
|
std::string soName = target->GetSOName(this->Config);
|
|
|
const char* soname = soName.empty()? 0 : soName.c_str();
|
|
const char* soname = soName.empty()? 0 : soName.c_str();
|
|
|
|
|
|
|
|
- // Add the library runtime entry.
|
|
|
|
|
- this->AddLibraryRuntimeInfo(fullPath, soname);
|
|
|
|
|
|
|
+ // Include this library in the runtime path ordering.
|
|
|
|
|
+ this->OrderRuntimeSearchPath->AddLibrary(fullPath, soname);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
//----------------------------------------------------------------------------
|
|
|
void
|
|
void
|
|
|
-cmComputeLinkInformation::AddLibraryRuntimeInfo(std::string const& fullPath,
|
|
|
|
|
- const char* soname)
|
|
|
|
|
|
|
+cmComputeLinkInformation::AddLibraryRuntimeInfo(std::string const& fullPath)
|
|
|
{
|
|
{
|
|
|
// Get the name of the library from the file name.
|
|
// Get the name of the library from the file name.
|
|
|
std::string file = cmSystemTools::GetFilenameName(fullPath);
|
|
std::string file = cmSystemTools::GetFilenameName(fullPath);
|
|
@@ -1284,7 +1284,7 @@ cmComputeLinkInformation::AddLibraryRuntimeInfo(std::string const& fullPath,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Include this library in the runtime path ordering.
|
|
// Include this library in the runtime path ordering.
|
|
|
- this->OrderRuntimeSearchPath->AddLibrary(fullPath, soname);
|
|
|
|
|
|
|
+ this->OrderRuntimeSearchPath->AddLibrary(fullPath);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
//----------------------------------------------------------------------------
|