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

Method WriteXCodeSharedScheme

Source/cmXCodeScheme.cxx:41–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void cmXCodeScheme::WriteXCodeSharedScheme(std::string const& xcProjDir,
42 std::string const& container)
43{
44 // Create shared scheme sub-directory tree
45 //
46 std::string xcodeSchemeDir = cmStrCat(xcProjDir, "/xcshareddata/xcschemes");
47 cmSystemTools::MakeDirectory(xcodeSchemeDir);
48
49 std::string xcodeSchemeFile =
50 cmStrCat(xcodeSchemeDir, '/', this->TargetName, ".xcscheme");
51
52 cmGeneratedFileStream fout(xcodeSchemeFile);
53 fout.SetCopyIfDifferent(true);
54 if (!fout) {
55 return;
56 }
57
58 WriteXCodeXCScheme(fout, container);
59}
60
61void cmXCodeScheme::WriteXCodeXCScheme(std::ostream& fout,
62 std::string const& container)

Callers 1

Calls 2

SetCopyIfDifferentMethod · 0.80
cmStrCatFunction · 0.70

Tested by

no test coverage detected