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:
parent
b5b55827aa
commit
7dc53c5362
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user