Skip to content

Commit a9a7f8d

Browse files
authored
Fix our usage of GetGitRevisionDescription to match new functions (#187)
1 parent 9948f6f commit a9a7f8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
8080
INCLUDE(GetGitRevisionDescription)
8181
#GET_GIT_HEAD_REVISION(GIT_REFSPEC GIT_SHA1)
8282

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

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

0 commit comments

Comments
 (0)