On Wednesday 16 November 2011 20:10:08 Marko Käning wrote:
> As a temporary solution to the problem I simply use this patch:
> ---
> --- kmymoney/CMakeLists.txt 2011-11-16 19:34:20.000000000 +0100
> +++ kmymoney/CMakeLists.txt.new 2011-11-16 19:36:03.000000000 +0100
> @@ -40,21 +40,7 @@
>    SET(ENV{LANG} ${LANG})
>  ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.svn)
>
> -# Determine the GIT reference (if we're based on GIT)
> -IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
> -  # make sure we don't use translated messages here
> -  SET(LANG $ENV{LANG})
> -  SET(ENV{LANG} "C")
> -  EXECUTE_PROCESS(COMMAND git log -1 COMMAND head -n 1 WORKING_DIRECTORY
> ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE BRANCH) -  # extract branch
> name
> -  STRING(REGEX MATCH "commit ([^$]+)" BRANCH "${BRANCH}")
> -  SET(BRANCH ${CMAKE_MATCH_1})
> -  # and use the first 10 chars of the commit id
> -  STRING(SUBSTRING ${BRANCH} 0 10 BRANCH)
> -  SET(VERSION_SUFFIX "-${BRANCH}")
> -  # switch back to the original language setting
> -  SET(ENV{LANG} ${LANG})
> -ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
> +SET(VERSION_SUFFIX "-GIT")
>
>  ######################### General Requirements ##########################
> ---
> which eliminates the whole code involving interaction with git.

This is no longer necessary since I've enabled this check only for Linux
because it did not work on Windows either.

--
Regards,

Cristian Oneț

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
KMyMoney-devel mailing list
KMyMoney-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmymoney-devel

Reply via email to