MCPcopy Create free account
hub / github.com/Kitware/CMake / InitMacOSXContentDirectory

Method InitMacOSXContentDirectory

Source/cmOSXBundleGenerator.cxx:209–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209std::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}

Callers 3

operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80

Calls 5

cmStrCatFunction · 0.70
substrMethod · 0.45
findMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected