summaryrefslogtreecommitdiff
path: root/cmake/modules/GitRevParse.cmake
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-01-28 16:54:36 +0100
committerAki <please@ignore.pl>2023-01-28 17:05:40 +0100
commite3fbcfc085411475cb07da84308f03dbd3405e5e (patch)
tree1fd0cdc7e8b8f90b032973dca983200b4d273998 /cmake/modules/GitRevParse.cmake
parent161f92d0cf6982e605a7ec1be6eb19dc60951c45 (diff)
downloadkurator-e3fbcfc085411475cb07da84308f03dbd3405e5e.zip
kurator-e3fbcfc085411475cb07da84308f03dbd3405e5e.tar.gz
kurator-e3fbcfc085411475cb07da84308f03dbd3405e5e.tar.bz2
Commits will now trigger version-files regeneration during build
Diffstat (limited to 'cmake/modules/GitRevParse.cmake')
-rw-r--r--cmake/modules/GitRevParse.cmake14
1 files changed, 0 insertions, 14 deletions
diff --git a/cmake/modules/GitRevParse.cmake b/cmake/modules/GitRevParse.cmake
deleted file mode 100644
index 9005d65..0000000
--- a/cmake/modules/GitRevParse.cmake
+++ /dev/null
@@ -1,14 +0,0 @@
-function(git_rev_parse VAR)
- execute_process(
- COMMAND git rev-parse --short HEAD
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- RESULT_VARIABLE PARSE_RESULT
- OUTPUT_VARIABLE PARSE_OUTPUT
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- if(NOT PARSE_RESULT)
- set(${VAR} ${PARSE_OUTPUT} PARENT_SCOPE)
- else()
- set(${VAR} "Unknown" PARENT_SCOPE)
- endif()
-endfunction()