add TIMEOUT 1 to git shortlog in configure script

For some reason executing git shortlog in Qt Creator cmake project
import hangs. This is a workaround so that it is still possible to
use Qt Creator without changing the normal build, in which git shortlog
will certainly complete in 1 second.
This commit is contained in:
Andrew Kelley
2014-01-25 22:20:34 -05:00
parent 186aedda93
commit 15aaf6f4ca

View File

@@ -357,7 +357,8 @@ IF(GIT_FOUND)
COMMAND ${GIT_EXECUTABLE} shortlog -sne
COMMAND cut -c8-
OUTPUT_FILE ${CONTRIBUTORS}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
TIMEOUT 1)
ENDIF(GIT_FOUND)
SET(lmms_EMBEDDED_RESOURCES ${CMAKE_SOURCE_DIR}/AUTHORS ${CMAKE_SOURCE_DIR}/COPYING ${CONTRIBUTORS})