On 09/27/2016 12:20 AM, Junghyun Kim wrote:
> If aux_source_directory(. SRCS) or file(glob SRCS "*.c") is used
> files in SRCS are not sorted.

The file(GLOB) command sorts as of CMake 3.6:

  file: Sort GLOB results to make it deterministic (#14491)
  https://gitlab.kitware.com/cmake/cmake/commit/edcccde7

A similar change could be made to aux_source_directory, though there is
little reason to use that ancient command these days.  Also, the CMake
documentation recommends against using file(GLOB) to collect sources.

-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

Reply via email to