ENH: fix for older xcode and framework create
This commit is contained in:
parent
adcd87c976
commit
181f4cb0af
|
@ -1467,6 +1467,15 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
|
||||||
{
|
{
|
||||||
// Get the install_name directory for the build tree.
|
// Get the install_name directory for the build tree.
|
||||||
install_name_dir = target.GetInstallNameDirForBuildTree(configName);
|
install_name_dir = target.GetInstallNameDirForBuildTree(configName);
|
||||||
|
if(target.GetPropertyAsBool("FRAMEWORK"))
|
||||||
|
{
|
||||||
|
if(install_name_dir.find(".framework") != install_name_dir.npos)
|
||||||
|
{
|
||||||
|
install_name_dir = install_name_dir + "/..";
|
||||||
|
install_name_dir = cmSystemTools::CollapseFullPath(install_name_dir.c_str());
|
||||||
|
std::cerr << "new install name " << install_name_dir << "\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(install_name_dir.empty())
|
if(install_name_dir.empty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue