Skip to content

Commit

Permalink
Modify CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Mar 25, 2020
1 parent 1e56403 commit daf35e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ IF(EXISTS "${CMAKE_SOURCE_DIR}/.git")
OUTPUT_VARIABLE GIT_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE
)
endif()
SET(BUILD_VERSION ${GIT_VERSION})
IF(NOT BUILD_VERSION)
SET(BUILD_VERSION "v0.0.1")
IF(NOT GIT_VERSION)
SET(BUILD_VERSION ${GIT_VERSION})
ENDIF()
ENDIF()
ENDIF()
Expand Down

0 comments on commit daf35e0

Please sign in to comment.