Remove "v" at the beginning of the version
This commit is contained in:
@@ -13,6 +13,7 @@ execute_process(
|
||||
|
||||
if (GIT_DESC)
|
||||
string(STRIP ${GIT_DESC} GIT_DESC)
|
||||
string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC})
|
||||
message(STATUS "Setting version to ${GIT_DESC} from git")
|
||||
else()
|
||||
set(GIT_DESC v${CMAKE_PROJECT_VERSION})
|
||||
|
||||
@@ -7,6 +7,7 @@ else()
|
||||
endif()
|
||||
|
||||
if (GIT_DESC)
|
||||
string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC})
|
||||
configure_file(version.cpp.in version.cpp)
|
||||
else ()
|
||||
add_custom_target(wivrn-version ALL
|
||||
|
||||
Reference in New Issue
Block a user