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

Method GetCMakeListFile

Source/cmake.cxx:4556–4568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4554}
4555
4556std::string cmake::GetCMakeListFile(std::string const& dir) const
4557{
4558 assert(!dir.empty());
4559 cm::string_view const slash = dir.back() != '/' ? "/"_s : ""_s;
4560 std::string listFile;
4561 if (!this->CMakeListName.empty()) {
4562 listFile = cmStrCat(dir, slash, this->CMakeListName);
4563 }
4564 if (listFile.empty() || !cmSystemTools::FileExists(listFile, true)) {
4565 listFile = cmStrCat(dir, slash, "CMakeLists.txt");
4566 }
4567 return listFile;
4568}
4569
4570#if !defined(CMAKE_BOOTSTRAP)
4571cmMakefileProfilingData& cmake::GetProfilingOutput()

Callers 8

BuildsystemFileScopeMethod · 0.80
ConfigureMethod · 0.80
ConfigureSubDirectoryMethod · 0.80
AddXCodeProjBuildRuleMethod · 0.80
CreateGroupsMethod · 0.80
CreateVCProjBuildRuleMethod · 0.80

Calls 4

cmStrCatFunction · 0.70
FileExistsFunction · 0.50
emptyMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected