From c474775f0927c949c3d2b2cda9ebf7b6d139286a Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Sun, 17 Jan 2016 02:03:10 +0200 Subject: [PATCH] Generate the API documentation in a reproducible way. Sort the list of source files before passing them to the kernel-doc script so that it always outputs the discovered functions and structures in the same order. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 38aef723b..2e129b469 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -970,6 +970,7 @@ if (UNIX) # TODO: Fix this on Windows. message("Generating API documentation") file(GLOB C_FILES "${PROJECT_SOURCE_DIR}/lib/*.c") + list(SORT C_FILES) execute_process(COMMAND "${CMAKE_COMMAND}" -E make_directory "${PROJECT_BINARY_DIR}/doc/") execute_process(