This commit is contained in:
Portal 2026-04-08 00:00:53 +03:00 committed by GitHub
commit 7adcb95a40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 12 deletions

View file

@ -40,12 +40,12 @@ if(CMAKE_HOST_WIN32)
elseif(CMAKE_HOST_UNIX)
execute_process(
COMMAND rsync -av ${COPY_SOURCE} "${COPY_DEST}/"
RESULT_VARIABLE rs
COMMAND cp -av "${COPY_SOURCE}/" "${COPY_DEST}/"
RESULT_VARIABLE cp
)
if(rs GREATER 0) # Any non-zero exit code indicates an error
message(FATAL_ERROR "rsync failed (exit code ${rs})")
if(cp GREATER 0) # Any non-zero exit code indicates an error
message(FATAL_ERROR "cp failed (exit code ${cp})")
endif()
else()
message(FATAL_ERROR "Unsupported host platform for asset copying.")