cmake: Use file(COPY ...) to install Android project files

Otherwise gradlew ends up without executable permission.
This commit is contained in:
Sebastian Krzyszkowiak 2022-07-28 21:57:57 +02:00
parent 901d43a520
commit 79400c4705
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -597,7 +597,7 @@ if (NOT LIBSUPERDERPY_CONFIG_INCLUDED)
set(LIBSUPERDERPY_PLATFORM_OVERRIDE "android")
file(REMOVE_RECURSE "${CMAKE_BINARY_DIR}/android")
file(INSTALL "${LIBSUPERDERPY_DIR}/android" DESTINATION "${CMAKE_BINARY_DIR}")
file(COPY "${LIBSUPERDERPY_DIR}/android" DESTINATION "${CMAKE_BINARY_DIR}")
MACRO(configure_android_file PATH)
configure_file("${CMAKE_BINARY_DIR}/android/${PATH}.in" "${CMAKE_BINARY_DIR}/android/${PATH}" ${ARGN})