CPack: Archive files in a reproducible order

Issue: #23466
This commit is contained in:
Steve Peters authored and Brad King committed 2026-05-15 13:55:25 -04:00
1 parent 92ab54ae3b
commit cbb903efd9
1 file changed
+3
+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.