From c0326d0d543615b5f3e0c10d382e0275a18d5b47 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 11 Oct 2006 12:41:17 -0400 Subject: [PATCH] ENH: Simplify code by removing redundant check against BUILD_WITH_INSTALL_RPATH. --- Source/cmGlobalXCodeGenerator.cxx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 0b5c93e64..319f460b9 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1432,18 +1432,8 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target, std::string install_name_dir; if(target.GetType() == cmTarget::SHARED_LIBRARY) { - // Select whether to generate an install_name directory for the - // install tree or the build tree. - if(target.GetPropertyAsBool("BUILD_WITH_INSTALL_RPATH")) - { - install_name_dir = - target.GetInstallNameDirForInstallTree(configName); - } - else - { - install_name_dir = - target.GetInstallNameDirForBuildTree(configName); - } + // Get the install_name directory for the build tree. + install_name_dir = target.GetInstallNameDirForBuildTree(configName); if(install_name_dir.empty()) {