ENH: Simplify code by removing redundant check against BUILD_WITH_INSTALL_RPATH.
This commit is contained in:
parent
3a757c253d
commit
c0326d0d54
|
@ -1432,18 +1432,8 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
|
||||||
std::string install_name_dir;
|
std::string install_name_dir;
|
||||||
if(target.GetType() == cmTarget::SHARED_LIBRARY)
|
if(target.GetType() == cmTarget::SHARED_LIBRARY)
|
||||||
{
|
{
|
||||||
// Select whether to generate an install_name directory for the
|
// Get the install_name directory for the build tree.
|
||||||
// install tree or the build tree.
|
install_name_dir = target.GetInstallNameDirForBuildTree(configName);
|
||||||
if(target.GetPropertyAsBool("BUILD_WITH_INSTALL_RPATH"))
|
|
||||||
{
|
|
||||||
install_name_dir =
|
|
||||||
target.GetInstallNameDirForInstallTree(configName);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
install_name_dir =
|
|
||||||
target.GetInstallNameDirForBuildTree(configName);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(install_name_dir.empty())
|
if(install_name_dir.empty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue