[Libwebsockets] Finding the currect Git hash tag

"Andy Green (林安廸)" andy at warmcat.com
Thu Oct 24 15:57:15 CEST 2013


On 24/10/13 20:41, the mail apparently from Arokux X included:
> Hi all,
>
> please consider applying the patch below. The git is called in some
> different directory and that is why fails. I'm not sure why it was
> called in different directory, maybe because I build libwebsockets
> with CMake's ExternalProject.

Thanks, it's applied

http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/?id=e0b3d13fbf4bd74385d96bc3aedb552780954443

-Andy

> Best,
> Arokux
>
> diff --git a/CMakeLists.txt b/CMakeLists.txt
> index fed8704..35fb7f8 100644
> --- a/CMakeLists.txt
> +++ b/CMakeLists.txt
> @@ -23,6 +23,7 @@ message(STATUS
> "CMAKE_TOOLCHAIN_FILE='${CMAKE_TOOLCHAIN_FILE}'")
>   find_package(Git)
>   if(GIT_EXECUTABLE)
>          execute_process(
> +    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
>       COMMAND "${GIT_EXECUTABLE}" log -n 1 --pretty=%h
>       OUTPUT_VARIABLE GIT_HASH
>       OUTPUT_STRIP_TRAILING_WHITESPACE
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
>




More information about the Libwebsockets mailing list