Skip to content

Commit

Permalink
Fix our usage of GetGitRevisionDescription to match new functions (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcglohon authored Jul 11, 2022
1 parent 9948f6f commit a9a7f8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
INCLUDE(GetGitRevisionDescription)
#GET_GIT_HEAD_REVISION(GIT_REFSPEC GIT_SHA1)

git_describe(VERSION --tags --dirty)
# changed to look at the working tree and not the latest commit hash -- allows for use of --dirty.
git_describe_working_tree(VERSION --tags --dirty)
message(STATUS "ROSS VERSION=${VERSION}")

#parse the version information into pieces.
string(REGEX REPLACE "^v([0-9]+)\\..*" "\\1" VERSION_MAJOR "${VERSION}")
Expand Down

0 comments on commit a9a7f8d

Please sign in to comment.