[system/ksystemlog] src: Remove warning (found by cmake --warn-uninitialized -Werror=dev )

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 1c6e925ea00ca1ced0e1d4f69b1edc09e98c74bb by Laurent Montel.
Committed on 23/07/2026 at 05:08.
Pushed by mlaurent into branch 'master'.

Remove warning (found by cmake --warn-uninitialized -Werror=dev )

M  +8    -8    src/CMakeLists.txt

https://invent.kde.org/system/ksystemlog/-/commit/1c6e925ea00ca1ced0e1d4f69b1edc09e98c74bb

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 95899090..8c5213e7 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -19,12 +19,12 @@ add_subdirectory(modes/apache)
 add_subdirectory(modes/postfix)
 add_subdirectory(modes/samba)
 add_subdirectory(modes/cups)
-if (${AUDIT_FOUND})
+if (AUDIT_FOUND)
     add_subdirectory(modes/audit)
-endif (${AUDIT_FOUND})
-if (${JOURNALD_FOUND})
+endif ()
+if (JOURNALD_FOUND)
     add_subdirectory(modes/journald)
-endif (${JOURNALD_FOUND})
+endif ()
 
 add_executable(ksystemlog)
 target_sources(ksystemlog PRIVATE
@@ -79,15 +79,15 @@ target_link_libraries(ksystemlog
     KF6::Crash
 )
 
-if (${JOURNALD_FOUND})
+if (JOURNALD_FOUND)
     target_link_libraries(ksystemlog
         ksystemlog_journald)
-endif(${JOURNALD_FOUND})
+endif()
 
-if (${AUDIT_FOUND})
+if (AUDIT_FOUND)
     target_link_libraries(ksystemlog
         ksystemlog_audit)
-endif(${AUDIT_FOUND})
+endif()
 
 ########### Installation ###############
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.