Adjusted SDL build script to work with SDL3 (kind of).
This commit is contained in:
13
recipes/SDL/fix_sdl3_from_worktree.patch
Normal file
13
recipes/SDL/fix_sdl3_from_worktree.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/cmake/GetGitRevisionDescription.cmake b/cmake/GetGitRevisionDescription.cmake
|
||||
index a08895c64..d3873387d 100644
|
||||
--- a/cmake/GetGitRevisionDescription.cmake
|
||||
+++ b/cmake/GetGitRevisionDescription.cmake
|
||||
@@ -143,7 +143,7 @@ function(get_git_head_revision _refspecvar _hashvar)
|
||||
string(REGEX REPLACE "gitdir: (.*)$" "\\1" git_worktree_dir
|
||||
${worktree_ref})
|
||||
string(STRIP ${git_worktree_dir} git_worktree_dir)
|
||||
- _git_find_closest_git_dir("${git_worktree_dir}" GIT_DIR)
|
||||
+ set(GIT_DIR "${git_worktree_dir}")
|
||||
set(HEAD_SOURCE_FILE "${git_worktree_dir}/HEAD")
|
||||
endif()
|
||||
else()
|
||||
Reference in New Issue
Block a user