mirror of
https://github.com/transmission/transmission
synced 2024-12-27 18:18:10 +00:00
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:
parent
3008a992ca
commit
9bb3de406b
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ set(APPICONSET_DIR "${PROJECT_SOURCE_DIR}/Images/Images.xcassets/AppIcon.appicon
|
||||||
set(APPICON_FILE "${PROJECT_BINARY_DIR}/Transmission.icns")
|
set(APPICON_FILE "${PROJECT_BINARY_DIR}/Transmission.icns")
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT "${APPICON_FILE}"
|
OUTPUT "${APPICON_FILE}"
|
||||||
COMMAND "${CMAKE_COMMAND}" -E rm -f
|
COMMAND "${CMAKE_COMMAND}" -E rm -rf
|
||||||
"${PROJECT_BINARY_DIR}/Transmission.iconset"
|
"${PROJECT_BINARY_DIR}/Transmission.iconset"
|
||||||
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
||||||
"${APPICONSET_DIR}"
|
"${APPICONSET_DIR}"
|
||||||
|
|
Loading…
Reference in a new issue