2021-08-19 08:19:15 +08:00
|
|
|
--- a/SDL2Config.cmake
|
|
|
|
+++ b/SDL2Config.cmake
|
2022-01-27 07:32:31 +08:00
|
|
|
@@ -46,6 +46,7 @@ foreach(prop ${relprops})
|
2021-08-19 08:19:15 +08:00
|
|
|
endif()
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
+if(NOT WINDOWS_STORE)
|
|
|
|
foreach(prop ${relprops})
|
|
|
|
get_target_property(sdl2mainimplib SDL2::SDL2main ${prop})
|
|
|
|
if(sdl2mainimplib)
|
2022-01-27 07:32:31 +08:00
|
|
|
@@ -53,6 +54,7 @@ foreach(prop ${relprops})
|
2021-08-19 08:19:15 +08:00
|
|
|
break()
|
|
|
|
endif()
|
|
|
|
endforeach()
|
|
|
|
+endif()
|
|
|
|
|
|
|
|
foreach(prop ${dbgprops})
|
|
|
|
get_target_property(sdl2implibdbg SDL2::SDL2 ${prop})
|
2022-01-27 07:32:31 +08:00
|
|
|
@@ -62,6 +64,7 @@ foreach(prop ${dbgprops})
|
2021-08-19 08:19:15 +08:00
|
|
|
endif()
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
+if(NOT WINDOWS_STORE)
|
|
|
|
foreach(prop ${dbgprops})
|
|
|
|
get_target_property(sdl2mainimplibdbg SDL2::SDL2main ${prop})
|
|
|
|
if(sdl2mainimplibdbg)
|
2022-01-27 07:32:31 +08:00
|
|
|
@@ -69,6 +72,7 @@ foreach(prop ${dbgprops})
|
2021-08-19 08:19:15 +08:00
|
|
|
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
|