2022-06-03 18:06:09 +00:00
|
|
|
# SDL2 CMake version configuration file:
|
|
|
|
# This file is meant to be placed in a cmake subfolder of SDL2-devel-2.x.y-mingw
|
|
|
|
|
|
|
|
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
|
|
set(sdl2_config_path "${CMAKE_CURRENT_LIST_DIR}/../i686-w64-mingw32/lib/cmake/SDL2/sdl2-config-version.cmake")
|
|
|
|
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
|
|
set(sdl2_config_path "${CMAKE_CURRENT_LIST_DIR}/../x86_64-w64-mingw32/lib/cmake/SDL2/sdl2-config-version.cmake")
|
2022-10-20 11:29:35 +00:00
|
|
|
else()
|
2022-06-03 18:06:09 +00:00
|
|
|
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
|
|
|
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)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include("${sdl2_config_path}")
|