summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-11-18 04:23:07 +0100
committerSlávek Banko <slavek.banko@axis.cz>2024-11-18 11:14:16 +0100
commit61f9661dc2fb2de3413c8abbc3a4dc1348eaf3a9 (patch)
tree5c53c2cc070acfb2030d4a27f363009743ec52fb
parent97297061e691a618ef79163b6a33364ad07f14e6 (diff)
downloadkmymoney-61f9661d.tar.gz
kmymoney-61f9661d.zip
Use tde_install_symlink to create symlink during installation,
instead of calling add_custom_command, add_custom_target and install. 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 <slavek.banko@axis.cz> (cherry picked from commit e617b844b58acc6be75236628390a431e4d7b21c)
-rw-r--r--kmymoney2/CMakeLists.txt15
1 files changed, 1 insertions, 14 deletions
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) #######################