Non-deterministic file(GLOB_RECURSE) ordering undermines build reproducibility - CMake
The goal is to make file(GLOB_RECURSE) return source files in the same order on every machine and CMake version so generated build files and test discovery remain reproducible. CMake documentation states that GLOB_RECURSE ordering is unspecified and may change between releases; list(SORT) can impose order but is not applied automatically. This assumes CMake