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

Method GetSwiftModuleFileName

Source/cmGeneratorTarget.cxx:6480–6492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6478}
6479
6480std::string cmGeneratorTarget::GetSwiftModuleFileName() const
6481{
6482 std::string moduleFilename = this->GetPropertyOrDefault(
6483 "Swift_MODULE", this->GetSwiftModuleName() + ".swiftmodule");
6484 if (this->GetPolicyStatusCMP0195() == cmPolicies::NEW) {
6485 if (cmValue moduleTriple =
6486 this->Makefile->GetDefinition("CMAKE_Swift_MODULE_TRIPLE")) {
6487 moduleFilename = cmStrCat(std::move(moduleFilename), '/', *moduleTriple,
6488 ".swiftmodule");
6489 }
6490 }
6491 return moduleFilename;
6492}
6493
6494std::string cmGeneratorTarget::GetSwiftModuleDirectory(
6495 std::string const& config) const

Callers 1

GetSwiftModulePathMethod · 0.95

Calls 5

GetPropertyOrDefaultMethod · 0.95
GetSwiftModuleNameMethod · 0.95
moveFunction · 0.85
cmStrCatFunction · 0.70
GetDefinitionMethod · 0.45

Tested by

no test coverage detected