| 207 | } |
| 208 | |
| 209 | std::string cmOSXBundleGenerator::InitMacOSXContentDirectory( |
| 210 | char const* pkgloc, std::string const& config) |
| 211 | { |
| 212 | // Construct the full path to the content subdirectory. |
| 213 | |
| 214 | std::string macdir = cmStrCat(this->GT->GetMacContentDirectory( |
| 215 | config, cmStateEnums::RuntimeBinaryArtifact), |
| 216 | '/', pkgloc); |
| 217 | cmSystemTools::MakeDirectory(macdir); |
| 218 | |
| 219 | // Record use of this content location. Only the first level |
| 220 | // directory is needed. |
| 221 | { |
| 222 | std::string loc = pkgloc; |
| 223 | loc = loc.substr(0, loc.find('/')); |
| 224 | this->MacContentFolders->insert(loc); |
| 225 | } |
| 226 | |
| 227 | return macdir; |
| 228 | } |
no test coverage detected