From b83949ad18c58525eb201c4816619541ce0638f2 Mon Sep 17 00:00:00 2001 From: Javier Serrano Polo Date: Mon, 15 Aug 2016 01:14:57 +0200 Subject: [PATCH] Honor CONTRIBUTORS override --- CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index caf7ed5a1..8524b4cbf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -458,9 +458,13 @@ FILE(REMOVE include/lmmsconfig.h) FILE(GLOB LMMS_INCLUDES "${CMAKE_SOURCE_DIR}/include/*.h") LIST(SORT LMMS_INCLUDES) -# Get list of all committers from git history, ordered by number of commits +# Get list of all committers from git history, ordered by number of commits. +# The CONTRIBUTORS file is used by AboutDialog. This information can be provided +# with -DCONTRIBUTORS=/path/to/CONTRIBUTORS instead. For instance, to generate +# this file for version 1.1.3, the command is: +# git shortlog -sne v1.1.3 | cut -c8- FIND_PACKAGE(Git) -IF(GIT_FOUND) +IF(GIT_FOUND AND NOT CONTRIBUTORS) SET(CONTRIBUTORS "${CMAKE_BINARY_DIR}/CONTRIBUTORS") EXECUTE_PROCESS( COMMAND "${GIT_EXECUTABLE}" shortlog -sne @@ -468,7 +472,7 @@ IF(GIT_FOUND) OUTPUT_FILE "${CONTRIBUTORS}" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" TIMEOUT 1) -ENDIF(GIT_FOUND) +ENDIF() # embedded resources stuff IF(WIN32 OR WIN64)