From 07270cd8410e8520d820eb0bfec13b0e3bbda388 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Sat, 15 Aug 2020 14:32:34 +0300 Subject: [PATCH] avoid regenerating symlink targets [cmake] --- fortune-mod/datfiles/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fortune-mod/datfiles/CMakeLists.txt b/fortune-mod/datfiles/CMakeLists.txt index 8cbfb20..324c5f9 100644 --- a/fortune-mod/datfiles/CMakeLists.txt +++ b/fortune-mod/datfiles/CMakeLists.txt @@ -37,7 +37,8 @@ FOREACH(c ${COOKIES}) ) endif() - LIST(APPEND _unrot_cookies "${DEST}" "${LINK}") + SET(_targets_on_build_stage_for_avoiding_broken_symlinks_which_regenerate "${c}") + LIST(APPEND _unrot_cookies ${_targets_on_build_stage_for_avoiding_broken_symlinks_which_regenerate} "${DEST}" "${LINK}") LIST(APPEND _install_unrot_cookies "${c}" "${CMAKE_CURRENT_BINARY_DIR}/${DEST}" "${CMAKE_CURRENT_BINARY_DIR}/${LINK}") ENDFOREACH() -- 2.40.0