Skip to content

Commit c73312c

Browse files
committed
fix SDL2 windows build, even with older package it didn't worked???
1 parent 007d90e commit c73312c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

external_deps/build.sh

+7
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,13 @@ build_install() {
11431143
;;
11441144
esac
11451145

1146+
case "${PLATFORM}" in
1147+
windows-*-*)
1148+
# CMake looks for libSDL2.a and aborts if missing if this file exists:
1149+
rm -rf "${PKG_PREFIX}/lib/cmake/SDL2/SDL2staticTargets.cmake"
1150+
;;
1151+
esac
1152+
11461153
# Remove empty directories
11471154
find "${PKG_PREFIX}/" -mindepth 1 -type d -empty -delete
11481155
}

0 commit comments

Comments
 (0)