From 20c76599f998fccd66068f4f7610bdeff1829d49 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 4 Jun 2022 03:11:23 +0200 Subject: [PATCH] Fix MinGW SDK redist: sdl2-config.cmake needs to set SDL2_FOUND --- mingw/pkg-support/cmake/sdl2-config.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mingw/pkg-support/cmake/sdl2-config.cmake b/mingw/pkg-support/cmake/sdl2-config.cmake index 17ff35297..8becf7198 100644 --- a/mingw/pkg-support/cmake/sdl2-config.cmake +++ b/mingw/pkg-support/cmake/sdl2-config.cmake @@ -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()