Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaiaeroastro committed Jun 2, 2024
1 parent 431b80a commit 70bb604
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmake/lib3mfConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,7 @@ else()
if(APPLE)
# On macOS, copy .dylib files, preserving symlinks only if they don't already exist in the target directory
add_custom_command(TARGET ${target} POST_BUILD
COMMAND sh -c "for file in '${lib3mf_LIBRARY_DIR}/lib3mf.dylib'*; do \
target_file='$<TARGET_FILE_DIR:${target}/$(basename $file)'; \
if [ ! -f \"$target_file\" ]; then \
cp -P \"$file\" \"$target_file\"; \
fi; \
done"
COMMAND sh -c "for file in '${lib3mf_LIBRARY_DIR}/lib3mf.dylib'*; do target_file='$<TARGET_FILE_DIR:${target}/$(basename $file)'; [ ! -f \"$target_file\" ] && cp -P \"$file\" \"$target_file\"; done"
COMMENT "Copying all lib3mf library files to target directory on MacOS")


Expand Down

0 comments on commit 70bb604

Please sign in to comment.