Преглед изворни кода

Merge topic 'osx-CFBundleExecutable'

78ec4b16 OS X: Shorten CFBundleExecutable to file name only
Brad King пре 10 година
родитељ
комит
f67b8065f6
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      Source/cmOSXBundleGenerator.cxx

+ 2 - 1
Source/cmOSXBundleGenerator.cxx

@@ -181,8 +181,9 @@ void cmOSXBundleGenerator::CreateCFBundle(const std::string& targetName,
   std::string plist = root + "/" +
     this->GT->Target->GetCFBundleDirectory(this->ConfigName, true);
   plist += "/Info.plist";
+  std::string name = cmSystemTools::GetFilenameName(targetName);
   this->LocalGenerator->GenerateAppleInfoPList(this->GT->Target,
-                                               targetName,
+                                               name,
                                                plist.c_str());
   this->Makefile->AddCMakeOutputFile(plist);
 }