| 245 | } |
| 246 | |
| 247 | bool cmakeCheckStampList(std::string const& stampList) |
| 248 | { |
| 249 | // If the stamp list does not exist CMake must rerun to generate it. |
| 250 | if (!cmSystemTools::FileExists(stampList)) { |
| 251 | std::cout << "CMake is re-running because generate.stamp.list " |
| 252 | "is missing.\n"; |
| 253 | return false; |
| 254 | } |
| 255 | cmsys::ifstream fin(stampList.c_str()); |
| 256 | if (!fin) { |
| 257 | std::cout << "CMake is re-running because generate.stamp.list " |
| 258 | "could not be read.\n"; |
| 259 | return false; |
| 260 | } |
| 261 | |
| 262 | // Check each stamp. |
| 263 | std::string stampName; |
| 264 | while (cmSystemTools::GetLineFromStream(fin, stampName)) { |
| 265 | if (!cmakeCheckStampFile(stampName)) { |
| 266 | return false; |
| 267 | } |
| 268 | } |
| 269 | return true; |
| 270 | } |
| 271 | |
| 272 | } // namespace |
| 273 |
no test coverage detected
searching dependent graphs…