2022-11-21 21:28:58 -07:00
|
|
|
# SDL3 CMake version configuration file:
|
2022-11-27 10:36:54 -07:00
|
|
|
# This file is meant to be placed in a cmake subfolder of SDL3-devel-3.x.y-mingw
|
2022-11-21 21:28:58 -07:00
|
|
|
|
|
|
|
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
2022-11-27 10:36:54 -07:00
|
|
|
set(sdl3_config_path "${CMAKE_CURRENT_LIST_DIR}/../i686-w64-mingw32/lib/cmake/SDL3/SDL3ConfigVersion.cmake")
|
2022-11-21 21:28:58 -07:00
|
|
|
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
2022-11-27 10:36:54 -07:00
|
|
|
set(sdl3_config_path "${CMAKE_CURRENT_LIST_DIR}/../x86_64-w64-mingw32/lib/cmake/SDL3/SDL3ConfigVersion.cmake")
|
2022-11-21 21:28:58 -07:00
|
|
|
else()
|
|
|
|
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT EXISTS "${sdl3_config_path}")
|
|
|
|
message(WARNING "${sdl3_config_path} does not exist: MinGW development package is corrupted")
|
|
|
|
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include("${sdl3_config_path}")
|