From 20752ccdb2aa936d1001018a71b0684390ddedbe 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 981535955..be399e8a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -975,6 +975,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(