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
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue