Skip to content

Commit

Permalink
fix: #17 git should not be required
Browse files Browse the repository at this point in the history
GetGitRevisionDescription module already looks for Git and falls back
as needed.
  • Loading branch information
abdes committed Sep 16, 2022
1 parent 4ac6928 commit 2c76104
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
# ------------------------------------------------------------------------------

# Get git revision
find_package(Git REQUIRED)
include(GetGitRevisionDescription)
get_git_head_revision(GIT_REFSPEC GIT_SHA1)
string(SUBSTRING "${GIT_SHA1}" 0 12 GIT_REV)
Expand Down

0 comments on commit 2c76104

Please sign in to comment.