Updates CheckLibUDev() to match main, fixing missing HAVE_LIBUDEV

This commit is contained in:
Charles Cross authored and Sam Lantinga committed 2024-07-29 07:21:14 -07:00
1 parent 2cb2897e50
commit e306cbcbee
1 file changed
+3 -2
+3 -2
View File
@@ -1356,12 +1356,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()