|
|
@@ -3845,73 +3845,6 @@ bool cmTarget::HaveInstallTreeRPATH() const
|
|
|
!this->Makefile->IsOn("CMAKE_SKIP_INSTALL_RPATH");
|
|
|
}
|
|
|
|
|
|
-//----------------------------------------------------------------------------
|
|
|
-std::string cmTarget::GetInstallNameDirForBuildTree(
|
|
|
- const std::string& config) const
|
|
|
-{
|
|
|
- // If building directly for installation then the build tree install_name
|
|
|
- // is the same as the install tree.
|
|
|
- if(this->GetPropertyAsBool("BUILD_WITH_INSTALL_RPATH"))
|
|
|
- {
|
|
|
- return GetInstallNameDirForInstallTree();
|
|
|
- }
|
|
|
-
|
|
|
- // Use the build tree directory for the target.
|
|
|
- if(this->Makefile->IsOn("CMAKE_PLATFORM_HAS_INSTALLNAME") &&
|
|
|
- !this->Makefile->IsOn("CMAKE_SKIP_RPATH") &&
|
|
|
- !this->GetPropertyAsBool("SKIP_BUILD_RPATH"))
|
|
|
- {
|
|
|
- std::string dir;
|
|
|
- bool macosx_rpath = this->MacOSXRpathInstallNameDirDefault();
|
|
|
- if(macosx_rpath)
|
|
|
- {
|
|
|
- dir = "@rpath";
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- dir = this->GetDirectory(config);
|
|
|
- }
|
|
|
- dir += "/";
|
|
|
- return dir;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- return "";
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-//----------------------------------------------------------------------------
|
|
|
-std::string cmTarget::GetInstallNameDirForInstallTree() const
|
|
|
-{
|
|
|
- if(this->Makefile->IsOn("CMAKE_PLATFORM_HAS_INSTALLNAME"))
|
|
|
- {
|
|
|
- std::string dir;
|
|
|
- const char* install_name_dir = this->GetProperty("INSTALL_NAME_DIR");
|
|
|
-
|
|
|
- if(!this->Makefile->IsOn("CMAKE_SKIP_RPATH") &&
|
|
|
- !this->Makefile->IsOn("CMAKE_SKIP_INSTALL_RPATH"))
|
|
|
- {
|
|
|
- if(install_name_dir && *install_name_dir)
|
|
|
- {
|
|
|
- dir = install_name_dir;
|
|
|
- dir += "/";
|
|
|
- }
|
|
|
- }
|
|
|
- if(!install_name_dir)
|
|
|
- {
|
|
|
- if(this->MacOSXRpathInstallNameDirDefault())
|
|
|
- {
|
|
|
- dir = "@rpath/";
|
|
|
- }
|
|
|
- }
|
|
|
- return dir;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- return "";
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
//----------------------------------------------------------------------------
|
|
|
const char* cmTarget::GetOutputTargetType(bool implib) const
|
|
|
{
|