]> granicus.if.org Git - fortune-mod/commitdiff
avoid regenerating symlink targets [cmake]
authorShlomi Fish <shlomif@shlomifish.org>
Sat, 15 Aug 2020 11:32:34 +0000 (14:32 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Sat, 15 Aug 2020 11:32:34 +0000 (14:32 +0300)
fortune-mod/datfiles/CMakeLists.txt

index 8cbfb207451404cf7a99be7ac0f488c9673a0c81..324c5f9433b3f4e4396b6203aea44898e5b69741 100644 (file)
@@ -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()