mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
cmGeneratorTarget: Move GetFrameworkDirectory from cmTarget.
This commit is contained in:
@@ -77,11 +77,11 @@ void cmOSXBundleGenerator::CreateFramework(
|
||||
|
||||
// Compute the location of the top-level foo.framework directory.
|
||||
std::string contentdir = outpath + "/" +
|
||||
this->GT->Target->GetFrameworkDirectory(this->ConfigName, true);
|
||||
this->GT->GetFrameworkDirectory(this->ConfigName, true);
|
||||
contentdir += "/";
|
||||
|
||||
std::string newoutpath = outpath + "/" +
|
||||
this->GT->Target->GetFrameworkDirectory(this->ConfigName, false);
|
||||
this->GT->GetFrameworkDirectory(this->ConfigName, false);
|
||||
|
||||
std::string frameworkVersion = this->GT->Target->GetFrameworkVersion();
|
||||
|
||||
@@ -172,14 +172,14 @@ void cmOSXBundleGenerator::CreateCFBundle(const std::string& targetName,
|
||||
// Compute bundle directory names.
|
||||
std::string out = root;
|
||||
out += "/";
|
||||
out += this->GT->Target->GetCFBundleDirectory(this->ConfigName, false);
|
||||
out += this->GT->GetCFBundleDirectory(this->ConfigName, false);
|
||||
cmSystemTools::MakeDirectory(out.c_str());
|
||||
this->Makefile->AddCMakeOutputFile(out);
|
||||
|
||||
// Configure the Info.plist file. Note that it needs the executable name
|
||||
// to be set.
|
||||
std::string plist = root + "/" +
|
||||
this->GT->Target->GetCFBundleDirectory(this->ConfigName, true);
|
||||
this->GT->GetCFBundleDirectory(this->ConfigName, true);
|
||||
plist += "/Info.plist";
|
||||
std::string name = cmSystemTools::GetFilenameName(targetName);
|
||||
this->LocalGenerator->GenerateAppleInfoPList(this->GT->Target,
|
||||
|
||||
Reference in New Issue
Block a user