vcpkg/ports/sdl2/0003-sdl2-disable-sdlmain-target-search-on-uwp.patch
Rémy Tassoux 25382e39f7
[sdl2] Update to 2.0.16 (#19509)
* [sdl2] Update to 2.0.16

* [sdl2] Update version files

* [sdl2] Fix uwp builds

* [sdl2] Update version files

* [sdl2] Change version-semver to version

* [sdl2] Fix uwp pkgconfig file creation

* [sdl2] Add alias on static build

* [sdl2] Remove cmake wrapper

* [sdl2] Update version files

* [sdl2] Disable SDL2::SDL2main target search on uwp

* [sdl2] Update version files

Co-authored-by: Rémy Tassoux <rt2@rasterizedworld.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2021-08-18 17:19:15 -07:00

35 lines
806 B
Diff

--- a/SDL2Config.cmake
+++ b/SDL2Config.cmake
@@ -32,6 +2,7 @@
endif()
endforeach()
+if(NOT WINDOWS_STORE)
foreach(prop ${relprops})
get_target_property(sdl2mainimplib SDL2::SDL2main ${prop})
if(sdl2mainimplib)
@@ -37,6 +37,7 @@
break()
endif()
endforeach()
+endif()
foreach(prop ${dbgprops})
get_target_property(sdl2implibdbg SDL2::SDL2 ${prop})
@@ -47,6 +47,7 @@
endif()
endforeach()
+if(NOT WINDOWS_STORE)
foreach(prop ${dbgprops})
get_target_property(sdl2mainimplibdbg SDL2::SDL2main ${prop})
if(sdl2mainimplibdbg)
@@ -55,6 +55,7 @@
break()
endif()
endforeach()
+endif()
if( sdl2implib AND sdl2mainimplib AND sdl2implibdbg AND sdl2mainimplibdbg )
# we have both release and debug builds of SDL2 and SDL2main, so use this ugly