Skip to content

Commit

Permalink
Skip lines in ldd_dependencies which have 'not found' in them (essent…
Browse files Browse the repository at this point in the history
…ially the api-ms-win stuff).
  • Loading branch information
Kasper Peeters committed Sep 27, 2024
1 parent cfc3d26 commit cfdaca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit cfdaca5

Please sign in to comment.