From 613aeabd0235a7868cfae14f2007d226a75cb430 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Thu, 31 Jul 2025 15:42:53 +0300 Subject: [PATCH] Hopefully fix Android libretro compilation --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e8e9428..aff024cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -201,7 +201,10 @@ target_include_directories(boost SYSTEM INTERFACE ${Boost_INCLUDE_DIR}) if(ANDROID) set(CRYPTOPP_OPT_DISABLE_ASM ON CACHE BOOL "" FORCE) - target_sources(AlberCore PRIVATE src/jni_driver.cpp) + if(NOT BUILD_LIBRETRO_CORE) + target_sources(AlberCore PRIVATE src/jni_driver.cpp) + endif() + target_link_libraries(AlberCore PRIVATE EGL log) endif()