Updated SDL2 and SDL2_image library names

fix-squashed-planets
Tomasz Kapuściński 2022-11-26 20:04:44 +01:00 committed by olokos
parent 0df78e7fa6
commit 5efd8342ec
2 changed files with 3 additions and 3 deletions

View File

@ -186,7 +186,7 @@ endif()
# SDL-2.0 is the name used by FreeBSD ports... # SDL-2.0 is the name used by FreeBSD ports...
# don't confuse it for the version number. # don't confuse it for the version number.
find_library(SDL2_LIBRARY find_library(SDL2_LIBRARY
NAMES SDL2 SDL-2.0 NAMES SDL2 SDL-2.0 SDL2-static
HINTS HINTS
ENV SDL2DIR ENV SDL2DIR
${SDL2_NO_DEFAULT_PATH_CMD} ${SDL2_NO_DEFAULT_PATH_CMD}
@ -223,7 +223,7 @@ if(NOT SDL2_BUILDING_LIBRARY)
HINTS HINTS
ENV SDL2DIR ENV SDL2DIR
${SDL2_NO_DEFAULT_PATH_CMD} ${SDL2_NO_DEFAULT_PATH_CMD}
PATH_SUFFIXES lib ${VC_LIB_PATH_SUFFIX} PATH_SUFFIXES lib lib/manual-link ${VC_LIB_PATH_SUFFIX}
PATHS ${SDL2MAIN_LIBRARY_PATHS} PATHS ${SDL2MAIN_LIBRARY_PATHS}
DOC "Where the SDL2main library can be found" DOC "Where the SDL2main library can be found"
) )

View File

@ -166,7 +166,7 @@ endif()
# Search for the SDL2_image library # Search for the SDL2_image library
find_library(SDL2_IMAGE_LIBRARY find_library(SDL2_IMAGE_LIBRARY
NAMES SDL2_image NAMES SDL2_image SDL2_image-static
HINTS HINTS
ENV SDL2IMAGEDIR ENV SDL2IMAGEDIR
ENV SDL2DIR ENV SDL2DIR