From e83c66ee505c98067eb6777506b15267a54949f4 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sat, 5 Jun 2021 09:41:09 -0400 Subject: [PATCH] Improve CopyLibs.cmake fix from 7d30537 for nonrecursive cases... ... When the graph of library dependencies is not recursive but complicated, a combinatorial explosion of paths could make the post-build step not infinite but very long (80 minutes in one of my experimental refactoring branches!) --- cmake-proxies/cmake-modules/CopyLibs.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake-proxies/cmake-modules/CopyLibs.cmake b/cmake-proxies/cmake-modules/CopyLibs.cmake index 50de14ee9..673b9a6ad 100644 --- a/cmake-proxies/cmake-modules/CopyLibs.cmake +++ b/cmake-proxies/cmake-modules/CopyLibs.cmake @@ -116,6 +116,7 @@ function( gather_libs src ) set( libs ${libs} PARENT_SCOPE ) set( postcmds ${postcmds} PARENT_SCOPE ) + set( VISITED ${VISITED} PARENT_SCOPE ) endfunction() gather_libs( "${SRC}" )