CPack: Archive files in a reproducible order

Issue: #23466
This commit is contained in:
Steve Peters
2026-05-15 13:55:25 -04:00
committed by Brad King
parent 92ab54ae3b
commit cbb903efd9
+3
View File
@@ -1158,6 +1158,9 @@ int cmCPackGenerator::DoPackage()
return 0;
}
this->files = gl.GetFiles();
// Add files in a reproducible order
std::stable_sort(this->files.begin(), this->files.end());
}
// Determine and store internally the directory that shall be packaged.