| 4554 | } |
| 4555 | |
| 4556 | std::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) |
| 4571 | cmMakefileProfilingData& cmake::GetProfilingOutput() |
no test coverage detected