From 610545c103d42ae1659dc0b4cf8bc181f30d66d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 16 Jun 2020 01:56:21 +0200 Subject: [PATCH] Use target names for commands instead of full paths. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using target names for commands, CMake automatically resolves the necessary dependencies without having to specify them in the CMakeLists.txt source code or in the common TDE CMake module. Signed-off-by: Slávek Banko (cherry picked from commit 98436f882d2146fe156c26e81bb87d409cfcf819) --- CMakeLists.txt | 8 ++++---- dnssd/CMakeLists.txt | 1 - doc/kspell/CMakeLists.txt | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 390cd420f..1252f8461 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1094,15 +1094,15 @@ configure_file( kdoctools/checkXML.cmake kdoctools/checkXML ) ##### tools ##################################### -set( KDE3_DCOPIDL_EXECUTABLE ${CMAKE_BINARY_DIR}/dcop/dcopidl/dcopidl ) +set( KDE3_DCOPIDL_EXECUTABLE dcopidl ) set( KDE3_DCOPIDLNG_EXECUTABLE perl -I"${CMAKE_SOURCE_DIR}/dcop/dcopidlng" "${CMAKE_SOURCE_DIR}/dcop/dcopidlng/kalyptus" --allow_k_dcop_accessors -f dcopidl ) -set( KDE3_DCOPIDL2CPP_EXECUTABLE ${CMAKE_BINARY_DIR}/dcop/dcopidl2cpp/dcopidl2cpp ) -set( KDE3_MEINPROC_EXECUTABLE ${CMAKE_BINARY_DIR}/kdoctools/meinproc ) -set( KDE3_KCFGC_EXECUTABLE ${CMAKE_BINARY_DIR}/kdecore/kconfig_compiler/kconfig_compiler ) +set( KDE3_DCOPIDL2CPP_EXECUTABLE dcopidl2cpp ) +set( KDE3_MEINPROC_EXECUTABLE meinproc ) +set( KDE3_KCFGC_EXECUTABLE kconfig_compiler ) ##### global compiler settings ################## diff --git a/dnssd/CMakeLists.txt b/dnssd/CMakeLists.txt index d973df137..3306f49aa 100644 --- a/dnssd/CMakeLists.txt +++ b/dnssd/CMakeLists.txt @@ -45,6 +45,5 @@ tde_add_library( ${target} SHARED AUTOMOC SOURCES ${${target}_SRCS} VERSION 1.0.0 LINK kdecore-shared ${AVAHI_TQT_LIBRARIES} ${AVAHI_CLIENT_LIBRARIES} - DEPENDENCIES kconfig_compiler DESTINATION ${LIB_INSTALL_DIR} ) diff --git a/doc/kspell/CMakeLists.txt b/doc/kspell/CMakeLists.txt index 94bc7cff5..2c67b9295 100644 --- a/doc/kspell/CMakeLists.txt +++ b/doc/kspell/CMakeLists.txt @@ -10,4 +10,3 @@ ################################################# tde_create_handbook( SRCDIR ${CMAKE_SOURCE_DIR}/kdoctools DESTINATION kspell ) -add_dependencies( kspell-en-handbook meinproc )