diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2024-05-20 10:21:45 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2024-05-20 10:21:45 +0200 |
commit | 22db72d853c2ec99a2c9fd41cf73fc1f22008707 (patch) | |
tree | c4fe089696f551b0f30dafc29462b870758766f9 | |
parent | 745749574513116a180b906c6da131197d0d21b7 (diff) | |
download | tdebase-22db72d853c2ec99a2c9fd41cf73fc1f22008707.tar.gz tdebase-22db72d853c2ec99a2c9fd41cf73fc1f22008707.zip |
Fix the detecion and use of the udev library.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | ConfigureChecks.cmake | 8 | ||||
-rw-r--r-- | tdekbdledsync/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tsak/CMakeLists.txt | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index b72d866df..45c0be953 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -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( ) diff --git a/tdekbdledsync/CMakeLists.txt b/tdekbdledsync/CMakeLists.txt index a7ba5c621..78d95187f 100644 --- a/tdekbdledsync/CMakeLists.txt +++ b/tdekbdledsync/CMakeLists.txt @@ -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 ) diff --git a/tsak/CMakeLists.txt b/tsak/CMakeLists.txt index 4490636db..185816b94 100644 --- a/tsak/CMakeLists.txt +++ b/tsak/CMakeLists.txt @@ -23,6 +23,6 @@ link_directories( tde_add_executable( tsak SOURCES main.cpp - LINK udev + LINK ${UDEV_LIBRARIES} DESTINATION ${BIN_INSTALL_DIR} ) |