OSDN Git Service

kdm: remove redundant explicit linkage to com_err library
authorIvailo Monev <xakepa10@gmail.com>
Tue, 29 Mar 2022 23:51:09 +0000 (02:51 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Tue, 29 Mar 2022 23:51:09 +0000 (02:51 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kdm/ConfigureChecks.cmake
kdm/backend/CMakeLists.txt

index 02ee779..98b7a35 100644 (file)
@@ -123,11 +123,6 @@ if (KDE4_KRB5AUTH)
 Due to a problem with X includes you probably have to run \"ln -s . krb5\"
 in the directory where the krb5.h include resides to make things actually work.")
         endif (KRB5_INCLUDE_DIR)
-        find_library(COMERR_LIBRARY com_err)
-        if (NOT COMERR_LIBRARY)
-            message(FATAL_ERROR "Kerberos5 support is enabled, but required libcomerr
-could not be found.")
-        endif (NOT COMERR_LIBRARY)
     endif (KRB5_LIBRARIES)
     mark_as_advanced(KRB5_INCLUDE_DIR KRB5_LIBRARIES)
     macro_bool_to_01(KRB5AUTH_FOUND K5AUTH)
index ce33a9f..a593a0b 100644 (file)
@@ -52,10 +52,7 @@ target_link_libraries(kdm
     ${X11_X_EXTRA_LIBS}
     ${UNIXAUTH_LIBRARIES}
     ${SHADOW_LIBRARIES}
-    ${S_LIBRARIES}
-    ${KRB4_LIBRARIES}
     ${KRB5_LIBRARIES}
-    ${COMERR_LIBRARY}
     ${NSL_LIBRARIES}
     ${RESOLV_LIBRARIES}
     ${SOCKET_LIBRARIES}