From 2a0dbcf7ee635b67442c5520ccbeb71f0f1fb196 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 09e366ff..763c6521 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -977,6 +977,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(