mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 10:39:02 +08:00
25382e39f7
* [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>
35 lines
806 B
Diff
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
|