mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-22 21:09:52 +00:00
Build: Avoid git-version regen if matching.
This should prevent needless rebuilds, i.e. if modifying a file only for headless or unittest this will skip linking Core and SDL.
This commit is contained in:
parent
24098bc233
commit
5490fb1d7c
@ -23,6 +23,14 @@ if(EXISTS ${GIT_VERSION_FILE})
|
||||
if(NOT ${match} EQUAL "")
|
||||
set(GIT_VERSION_UPDATE "0")
|
||||
endif()
|
||||
|
||||
# Let's also skip if it's the same.
|
||||
string(REPLACE "." "\\." GIT_VERSION_ESCAPED ${GIT_VERSION})
|
||||
file(STRINGS ${GIT_VERSION_FILE} match
|
||||
REGEX "PPSSPP_GIT_VERSION = \"${GIT_VERSION_ESCAPED}\";")
|
||||
if(NOT ${match} EQUAL "")
|
||||
set(GIT_VERSION_UPDATE "0")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(code_string "// This is a generated file.\n\n"
|
||||
|
Loading…
Reference in New Issue
Block a user