summaryrefslogtreecommitdiffstats
path: root/kmymoney2/CMakeLists.txt
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 04:23:07 +0100
commite617b844b58acc6be75236628390a431e4d7b21c (patch)
tree142e5e5c857c0e8996ccbb666670d24b01098585 /kmymoney2/CMakeLists.txt
parent9ac58bf388adb20955cb3116bcdb5260efd96d9c (diff)
downloadkmymoney-e617b844b58acc6be75236628390a431e4d7b21c.tar.gz
kmymoney-e617b844b58acc6be75236628390a431e4d7b21c.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>
Diffstat (limited to 'kmymoney2/CMakeLists.txt')
-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) #######################