Skip to content

Commit

Permalink
that worked; remove debug prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jun 7, 2021
1 parent 4a05041 commit ee7b259
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cmake/GetLibInfo.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,7 @@ math(EXPR DESCRIPTION_LENGTH "${DOC_LINK_TITLE} - ${README_TITLE}")
string(SUBSTRING "${CPACK_PACKAGE_DESCRIPTION}" ${README_TITLE} ${DESCRIPTION_LENGTH} CPACK_PACKAGE_DESCRIPTION)

# parse the version information into pieces.
execute_process(COMMAND git describe --tags
OUTPUT_VARIABLE VERSION
ERROR_VARIABLE GIT_DESCRIBE_FAIL
)
if(${GIT_DESCRIBE_FAIL})
message(FATAL "`git describe --tags` failed with: ${GIT_DESCRIBE_FAIL}")
else()
message("git describes the version tag as ${VERSION}")
endif()
execute_process(COMMAND git describe --tags OUTPUT_VARIABLE VERSION)
string(REGEX REPLACE "^v([0-9]+)\\..*" "\\1" VERSION_MAJOR "${VERSION}")
string(REGEX REPLACE "^v[0-9]+\\.([0-9]+).*" "\\1" VERSION_MINOR "${VERSION}")
string(REGEX REPLACE "^v[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" VERSION_PATCH "${VERSION}")
Expand Down

0 comments on commit ee7b259

Please # to comment.