From e617b844b58acc6be75236628390a431e4d7b21c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 18 Nov 2024 04:23:07 +0100 Subject: Use tde_install_symlink to create symlink during installation, instead of calling add_custom_command, add_custom_target and install. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This not only simplifies the code, but prevents the problem of repeated starting of the 'ln' command with CMake >= 3.31, which led to FTBFS. Signed-off-by: Slávek Banko --- kmymoney2/CMakeLists.txt | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'kmymoney2') diff --git a/kmymoney2/CMakeLists.txt b/kmymoney2/CMakeLists.txt index 16173e2..0281e08 100644 --- a/kmymoney2/CMakeLists.txt +++ b/kmymoney2/CMakeLists.txt @@ -66,20 +66,7 @@ tde_add_executable( kmymoney2 AUTOMOC DESTINATION ${BIN_INSTALL_DIR} ) -add_custom_command( - OUTPUT kmymoney - COMMENT "Creating kmymoney symlink" - COMMAND ln -s kmymoney2 kmymoney - DEPENDS kmymoney2 -) -add_custom_target( kmymoney-symlink ALL - DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/kmymoney -) - -install( - FILES ${CMAKE_CURRENT_BINARY_DIR}/kmymoney - DESTINATION ${BIN_INSTALL_DIR} -) +tde_install_symlink( kmymoney2 ${BIN_INSTALL_DIR}/kmymoney ) ##### kmymoneytest (test) ####################### -- cgit v1.2.1