On 05/16/2016 03:06 AM, Petr Kmoch wrote: > I'd like to express my concerns about the proposed change. > CMake strongly discourages using `file(GLOB)` to find source files [snip] > On 14 May 2016 at 12:30, Reiner Herrmann wrote: > @@ -1026,6 +1026,7 @@ bool > cmFileCommand::HandleGlobCommand(std::vector<std::string> const& args, > > std::vector<std::string>::size_type cc; > std::vector<std::string>& files = g.GetFiles(); > + std::sort(files.begin(), files.end());
This has been proposed several times and never accepted because file(GLOB) is a primitive. As Petr said our documentation explicitly discourages the use case in question. Those projects that wish to ignore our advice can use list(SORT) themselves to get reproducible source file ordering after file(GLOB). -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers