Skip to content

Commit

Permalink
By pass cp -P behaviour in case of repeated copying with an or clause
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaiaeroastro committed Jun 2, 2024
1 parent ee7ef6c commit 34120b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/lib3mfConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ else()
if(APPLE)
# On macOS, copy .dylib files, preserving symlinks
add_custom_command(TARGET ${target} POST_BUILD
COMMAND sh -c "cp -P '${lib3mf_LIBRARY_DIR}/lib3mf.dylib'* '$<TARGET_FILE_DIR:${target}>'"
COMMAND sh -c "cp -P '${lib3mf_LIBRARY_DIR}/lib3mf.dylib'* '$<TARGET_FILE_DIR:${target}>' || true"
COMMENT "Copying all lib3mf library files to target directory on MacOS")

elseif(UNIX)
Expand Down

0 comments on commit 34120b7

Please sign in to comment.