From: Shlomi Fish Date: Sat, 15 Aug 2020 11:32:34 +0000 (+0300) Subject: avoid regenerating symlink targets [cmake] X-Git-Tag: fortune-mod-3.2.0~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07270cd8410e8520d820eb0bfec13b0e3bbda388;p=fortune-mod avoid regenerating symlink targets [cmake] --- 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()