From cfdaca56d6e069c9ad75faba71e58bdcf1bfc973 Mon Sep 17 00:00:00 2001 From: Kasper Peeters Date: Fri, 27 Sep 2024 19:15:46 +0100 Subject: [PATCH] Skip lines in ldd_dependencies which have 'not found' in them (essentially the api-ms-win stuff). --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 205772c90c..a2c4aabb6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -448,7 +448,7 @@ if(WIN32) add_custom_command( OUTPUT dummy1 COMMAND cp core/cadabra2.pyd core/cadabra2.dll - COMMAND ${CMAKE_COMMAND} -E env bash -c "ldd /ucrt64/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll core/cadabra2.dll ${LEXECUTABLES} > ${CMAKE_BINARY_DIR}/ldd_dependencies.txt" + COMMAND ${CMAKE_COMMAND} -E env bash -c "ldd /ucrt64/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll core/cadabra2.dll ${LEXECUTABLES} | sed -e '/not found/d' | grep '=>' | sed -e 's/^[^=]*=>[ ]*\\([^ ]*\\).*/\\1/' | sort | uniq > ${CMAKE_BINARY_DIR}/ldd_dependencies.txt" COMMAND touch dummy1 VERBATIM DEPENDS core/cadabra2.pyd ${EXECUTABLES}