Fix CMake and Ninja rebuilds on macOS. (#2036)

The problem could occur with Makefiles also.
Use `-r` option on `rm` as `*.iconset` is a directory.

Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
Dzmitry Neviadomski 2021-10-25 00:48:20 +03:00 committed by GitHub
parent 3008a992ca
commit 9bb3de406b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ set(APPICONSET_DIR "${PROJECT_SOURCE_DIR}/Images/Images.xcassets/AppIcon.appicon
set(APPICON_FILE "${PROJECT_BINARY_DIR}/Transmission.icns")
add_custom_command(
OUTPUT "${APPICON_FILE}"
COMMAND "${CMAKE_COMMAND}" -E rm -f
COMMAND "${CMAKE_COMMAND}" -E rm -rf
"${PROJECT_BINARY_DIR}/Transmission.iconset"
COMMAND "${CMAKE_COMMAND}" -E copy_directory
"${APPICONSET_DIR}"