blob: 682ab3ede7c5008ea087bfcc7ddb6162edd82350 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
execute_process(
COMMAND "sh" "${CMAKE_SOURCE_DIR}/Modules/describe.sh"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
OUTPUT_VARIABLE DESCRIBE
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if(DESCRIBE STREQUAL "")
set (VERSION_TAG "UNKNOWN")
else()
string(REGEX REPLACE "^v" "" VERSION_TAG "${DESCRIBE}")
endif()
|