$NetBSD: patch-src_helper_CMakeLists.txt,v 1.1 2025/12/30 04:00:09 gutteridge Exp $

Add -lutil flag for NetBSD builds

--- src/helper/CMakeLists.txt.orig	2024-02-26 10:23:03.000000000 +0000
+++ src/helper/CMakeLists.txt
@@ -35,7 +35,7 @@ target_link_libraries(sddm-helper
                       Qt${QT_MAJOR_VERSION}::DBus
                       Qt${QT_MAJOR_VERSION}::Qml
                       ${LIBXAU_LINK_LIBRARIES})
-if("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
+if("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "NetBSD")
     # On FreeBSD (possibly other BSDs as well), we want to use
     # setusercontext() to set up the login configuration from login.conf
     find_library(_have_libutil util)
