diff --git a/cmake/lib3mfConfig.cmake b/cmake/lib3mfConfig.cmake index b4a69f771..7bb581736 100644 --- a/cmake/lib3mfConfig.cmake +++ b/cmake/lib3mfConfig.cmake @@ -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'* '$' || true" + COMMAND sh -c "cp -P '${lib3mf_LIBRARY_DIR}/lib3mf.dylib'* '$' 2>/dev/null" COMMENT "Copying all lib3mf library files to target directory on MacOS") elseif(UNIX)