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()