mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-04 06:12:04 +08:00
Updates CheckLibUDev() to match main, fixing missing HAVE_LIBUDEV
(cherry picked from commit e306cbcbee)
This commit is contained in:
committed by
Sam Lantinga
parent
76a3457ad5
commit
7635776ca4
@@ -1352,12 +1352,13 @@ endmacro()
|
|||||||
|
|
||||||
macro(CheckLibUDev)
|
macro(CheckLibUDev)
|
||||||
if(SDL_LIBUDEV)
|
if(SDL_LIBUDEV)
|
||||||
check_include_file("libudev.h" have_libudev_header)
|
check_include_file("libudev.h" HAVE_LIBUDEV_HEADER)
|
||||||
if(have_libudev_header)
|
if(HAVE_LIBUDEV_HEADER)
|
||||||
set(HAVE_LIBUDEV_H TRUE)
|
set(HAVE_LIBUDEV_H TRUE)
|
||||||
FindLibraryAndSONAME(udev)
|
FindLibraryAndSONAME(udev)
|
||||||
if(UDEV_LIB_SONAME)
|
if(UDEV_LIB_SONAME)
|
||||||
set(SDL_UDEV_DYNAMIC "\"${UDEV_LIB_SONAME}\"")
|
set(SDL_UDEV_DYNAMIC "\"${UDEV_LIB_SONAME}\"")
|
||||||
|
set(HAVE_LIBUDEV TRUE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user