From fc457719cf1d468ee1b9ed856e2b092469824a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 13 May 2020 19:12:59 +0200 Subject: [PATCH] KMail: Delete a separate rule for processing the kcfg file. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The tde_add_kcfg_files macro already properly defines the header file as the output file, so there is no need for separate rules for processing the kcfg file. Signed-off-by: Slávek Banko --- kmail/CMakeLists.txt | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/kmail/CMakeLists.txt b/kmail/CMakeLists.txt index e3022d55..ac30ce66 100644 --- a/kmail/CMakeLists.txt +++ b/kmail/CMakeLists.txt @@ -129,24 +129,6 @@ install( FILES DESTINATION ${DATA_INSTALL_DIR}/kmail/plugins/bodypartformatter ) -##### helper #################################### - -macro( process_kcfg _who _out _path _kcfg _kcfgc ) - add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/${_path}/${_out} - COMMAND - mkdir -p ${CMAKE_BINARY_DIR}/${_path} - COMMAND ${KDE3_KCFGC_EXECUTABLE} - -d ${CMAKE_BINARY_DIR}/${_path} - ${CMAKE_SOURCE_DIR}/${_path}/${_kcfg} - ${CMAKE_SOURCE_DIR}/${_path}/${_kcfgc} - DEPENDS - ${CMAKE_SOURCE_DIR}/${_path}/${_kcfg} - ${CMAKE_SOURCE_DIR}/${_path}/${_kcfgc} ) - set_property( SOURCE ${_who} APPEND - PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/${_path}/${_out} ) -endmacro() - - ##### kmailprivate (shared) ##################### set( target kmailprivate ) @@ -206,9 +188,6 @@ set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} ) tde_add_dcop_skels( ${target}_SRCS kmailIface.h kmailicalIface.h ) tde_restore( KDE3_DCOPIDL_EXECUTABLE ) -process_kcfg( globalsettings.h globalsettings_base.h kmail - kmail.kcfg globalsettings_base.kcfgc ) - add_custom_target( kmail_settings_base DEPENDS ${CMAKE_BINARY_DIR}/kmail/globalsettings_base.h