mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
Fix reliability of the CMake generated version
steps to reproduce : git checkout v1.10.1~3 git describe --always --> v1.10-19-g9aab3d986 [build now] PPSSPPSDL --version --> v1.10-19-g9aab3d986 git checkout v1.10.1 git describe --always --> v1.10.1 [build now] PPSSPPSDL --version --> v1.10-19-g9aab3d986 Indeed, the "v1.10.1" regex matches the "v1.10-19-g9aab3d986" string. How unfortunate! So I just deleted that check, building the same commit twice should not happen that often :)
This commit is contained in:
parent
99411472d1
commit
460ef63f5d
@ -23,13 +23,6 @@ if(EXISTS ${GIT_VERSION_FILE})
|
||||
if(NOT ${match} EQUAL "")
|
||||
set(GIT_VERSION_UPDATE "0")
|
||||
endif()
|
||||
|
||||
# Don't update if it's already the same.
|
||||
file(STRINGS ${GIT_VERSION_FILE} match
|
||||
REGEX "${GIT_VERSION}")
|
||||
if(NOT ${match} EQUAL "")
|
||||
set(GIT_VERSION_UPDATE "0")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(code_string "// This is a generated file.\n\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user