KDE3Macros: Replace obsolete/deprecated add_file_dependencies()

The AddFileDependencies module is deprecated as of CMake 3.20 but
doesn't emit warnings/deprecation notices yet. This for now only
upgrades the code usage of KDE3Macros module without this deprecated
module.
This commit is contained in:
Peter Kokot 2025-03-16 02:01:55 +01:00
parent b5b55827aa
commit 7dc53c5362
No known key found for this signature in database
GPG Key ID: A94800907AA79B36

View File

@ -21,6 +21,7 @@
#neundorf@kde.org
# Included for backward compatibility, otherwise unused.
include(AddFileDependencies)
#create the kidl and skeletion file for dcop stuff
@ -234,7 +235,7 @@ macro(KDE3_AUTOMOC)
DEPENDS ${_header}
)
ADD_FILE_DEPENDENCIES(${_abs_FILE} ${_moc})
set_property(SOURCE "${_abs_FILE}" APPEND PROPERTY OBJECT_DEPENDS "${_moc}")
endforeach ()
unset(_match)