Commit 9120a57f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by David Edmundson
Browse files

Fix ninja builds

Without this, ninja fails to regenerate at times:

It happens because we fail to transfer to the replaced file the
properties that the different macros have set to the original.
parent 92c08071
Pipeline #206738 passed with stage
in 8 minutes and 19 seconds
......@@ -33,6 +33,10 @@ qt_add_dbus_interface(kworkspace_LIB_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/org.freed
list(REMOVE_ITEM kworkspace_LIB_SRCS "${CMAKE_CURRENT_BINARY_DIR}/login1_manager_interface.cpp")
list(APPEND kworkspace_LIB_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/login1_manager_interface.cpp")
get_property(output SOURCE "${CMAKE_CURRENT_BINARY_DIR}/login1_manager_interface.cpp" PROPERTY OBJECT_DEPENDS)
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/login1_manager_interface.cpp" PROPERTIES OBJECT_DEPENDS ${output} SKIP_AUTOMOC TRUE
qt_add_dbus_interface(kworkspace_LIB_SRCS "org.freedesktop.UPower.xml" upower_interface)
qt_add_dbus_interface(kworkspace_LIB_SRCS "org.freedesktop.ConsoleKit.Manager.xml" consolekit_manager_interface)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment