Fix the detecion and use of the udev library.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/488/head
Slávek Banko 6 months ago
parent 7457495745
commit 22db72d853
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -159,11 +159,11 @@ if( WITH_TDEHWLIB )
endif( )
# udev (tsak)
if( BUILD_TSAK )
pkg_search_module( UDEV udev )
# udev (tsak, tdekbdledsync)
if( BUILD_TSAK OR BUILD_TDEKBDLEDSYNC )
pkg_search_module( UDEV libudev )
if( NOT UDEV_FOUND )
tde_message_fatal( "udev is required, but was not found on your system" )
tde_message_fatal( "udev library is required, but was not found on your system" )
endif( )
endif( )

@ -23,7 +23,7 @@ link_directories(
tde_add_executable( tdekbdledsync
SOURCES getfd.c main.cpp
LINK udev X11
LINK ${UDEV_LIBRARIES} X11
DESTINATION ${BIN_INSTALL_DIR}
SETUID
)

@ -23,6 +23,6 @@ link_directories(
tde_add_executable( tsak
SOURCES main.cpp
LINK udev
LINK ${UDEV_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)

Loading…
Cancel
Save