Fix MinGW SDK redist: sdl2-config.cmake needs to set SDL2_FOUND

This commit is contained in:
Anonymous Maarten 2022-06-04 03:11:23 +02:00 committed by Sam Lantinga
parent fd3f381021
commit 20c76599f9
1 changed files with 2 additions and 2 deletions

View File

@ -6,13 +6,13 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 4)
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(sdl2_config_path "${CMAKE_CURRENT_LIST_DIR}/../x86_64-w64-mingw32/lib/cmake/SDL2/sdl2-config.cmake")
else("${CMAKE_SIZEOF_VOID_P}" STREQUAL "")
set(PACKAGE_VERSION_UNSUITABLE TRUE)
set(SDL2_FOUND FALSE)
return()
endif()
if(NOT EXISTS "${sdl2_config_path}")
message(WARNING "${sdl2_config_path} does not exist: MinGW development package is corrupted")
set(PACKAGE_VERSION_UNSUITABLE TRUE)
set(SDL2_FOUND FALSE)
return()
endif()