Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f592042f authored by Thierry's avatar Thierry
Browse files

Update git_hash.sh

parent b72d4d95
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
echo "#define GIT_HASH" \"`git describe --always --dirty=+ --tags --long --abbrev=16`\" > $1 cd $1; echo "#define GIT_HASH" \"`git describe --always --dirty=+ --tags --long --abbrev=16`\" > $2
add_custom_command ( add_custom_command (
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/git_hash.h OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/git_hash.h
COMMAND ${SHELL_EXECUTABLE} ${CMAKE_SOURCE_DIR}/config/git_hash.sh ${CMAKE_CURRENT_BINARY_DIR}/git_hash.h COMMAND ${SHELL_EXECUTABLE} ${CMAKE_SOURCE_DIR}/config/git_hash.sh ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/git_hash.h
) )
add_custom_command ( add_custom_command (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment