diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2017-08-10 12:52:44 +0000 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-08-10 12:52:44 +0000 |
commit | f3d2ce1e668dfcf6b5088bf448b29f96d0ddaa76 (patch) | |
tree | 77572e937d903279d249fcfa0da61ae153111ec8 /cmake/GitVersionGen.cmake | |
parent | 3858ddeafce6eeda42ff380abffdc074646069e7 (diff) | |
parent | b19130ecab6d6731916834da30db02f5f1bc5838 (diff) | |
download | ouroboros-f3d2ce1e668dfcf6b5088bf448b29f96d0ddaa76.tar.gz ouroboros-f3d2ce1e668dfcf6b5088bf448b29f96d0ddaa76.zip |
Merged in sandervrijders/ouroboros/be-gitversiongen (pull request #546)
build: Simplify GitVersionGen
Diffstat (limited to 'cmake/GitVersionGen.cmake')
-rw-r--r-- | cmake/GitVersionGen.cmake | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cmake/GitVersionGen.cmake b/cmake/GitVersionGen.cmake index 718ec8a3..916572ff 100644 --- a/cmake/GitVersionGen.cmake +++ b/cmake/GitVersionGen.cmake @@ -5,12 +5,6 @@ macro(git_version_gen) message(FATAL_ERROR "This is not a git repository") endif () - find_program(SORT "sort") - mark_as_advanced(SORT) - if (${SORT} STREQUAL "") - message(FATAL_ERROR "Cannot find the sort executable") - endif () - find_program(TAIL "tail") mark_as_advanced(TAIL) if (${TAIL} STREQUAL "") @@ -19,7 +13,6 @@ macro(git_version_gen) execute_process( COMMAND ${GIT_EXECUTABLE} tag -l -n0 - COMMAND ${SORT} -V COMMAND ${TAIL} -n 1 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} OUTPUT_VARIABLE _git_tag |