diff options
| author | Patrick <[email protected]> | 2022-05-20 09:21:45 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-20 17:21:45 +0200 |
| commit | 76c3881944586b8f705d1857dbfcd8fe2a3ed0e1 (patch) | |
| tree | 9b93846a247c84ac0196a7523393a4ecc23bd6be /cmake/LibraryConfigurations.cmake | |
| parent | 5bdd8f134ff3c2c91f953bc74311f804d957db2d (diff) | |
| download | raylib-76c3881944586b8f705d1857dbfcd8fe2a3ed0e1.tar.gz raylib-76c3881944586b8f705d1857dbfcd8fe2a3ed0e1.zip | |
Fixed Android CMake build error (#2486)
`android_native_app_glue.c` wasn't appended to the `raylib_sources` as other libraries were.
Co-authored-by: Patrick Martin <[email protected]>
Diffstat (limited to 'cmake/LibraryConfigurations.cmake')
| -rw-r--r-- | cmake/LibraryConfigurations.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/LibraryConfigurations.cmake b/cmake/LibraryConfigurations.cmake index 105b502e..77215f07 100644 --- a/cmake/LibraryConfigurations.cmake +++ b/cmake/LibraryConfigurations.cmake @@ -44,7 +44,7 @@ elseif (${PLATFORM} MATCHES "Android") set(PLATFORM_CPP "PLATFORM_ANDROID") set(GRAPHICS "GRAPHICS_API_OPENGL_ES2") set(CMAKE_POSITION_INDEPENDENT_CODE ON) - set(raylib_sources "${raylib_sources} ${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c") + list(APPEND raylib_sources ${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c) add_definitions(-DANDROID -D__ANDROID_API__=21) include_directories(${ANDROID_NDK}/sources/android/native_app_glue) set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--exclude-libs,libatomic.a -Wl,--build-id -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--warn-shared-textrel -Wl,--fatal-warnings -u ANativeActivity_onCreate -Wl,-undefined,dynamic_lookup") |
