aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libretro-ppsspp/patch-disable-git-version.patch
blob: cf2d9368c7779541f2d7594f94f661869ec7c3bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Don't use git to append version into source code.
--- a/git-version.cmake
+++ b/git-version.cmake
@@ -1,20 +1,6 @@
 set(GIT_VERSION_FILE "${SOURCE_DIR}/git-version.cpp")
-set(GIT_VERSION "unknown")
+set(GIT_VERSION "@VERSION@")
 set(GIT_VERSION_UPDATE "1")
-
-find_package(Git)
-if(GIT_FOUND AND EXISTS "${SOURCE_DIR}/.git/")
-	execute_process(COMMAND ${GIT_EXECUTABLE} describe --always
-		WORKING_DIRECTORY ${SOURCE_DIR}
-		RESULT_VARIABLE exit_code
-		OUTPUT_VARIABLE GIT_VERSION)
-	if(NOT ${exit_code} EQUAL 0)
-		message(WARNING "git describe failed, unable to include version.")
-	endif()
-	string(STRIP ${GIT_VERSION} GIT_VERSION)
-else()
-	message(WARNING "git not found, unable to include version.")
-endif()
 
 if(EXISTS ${GIT_VERSION_FILE})
 	# Don't update if marked not to update.