Android example no longer needs to search Audio and Network modules as they are no longer being linked

This commit is contained in:
Bruno Van de Velde 2023-11-15 19:08:19 +01:00 committed by Chris Thrasher
parent 18dfcedbd9
commit 0da4382d6c

View File

@ -7,7 +7,7 @@ set(SFML_DIR "${CMAKE_ANDROID_NDK}/sources/third_party/sfml/lib/${CMAKE_ANDROID_
add_library(sfml-example SHARED main.cpp) add_library(sfml-example SHARED main.cpp)
# Find and link SFML # Find and link SFML
find_package(SFML 3 REQUIRED COMPONENTS Graphics Audio Network) find_package(SFML 3 REQUIRED COMPONENTS Graphics)
target_link_libraries(sfml-example PRIVATE SFML::Graphics android log) target_link_libraries(sfml-example PRIVATE SFML::Graphics android log)
# The ANativeActivity_onCreate function from SFML::Main needs to be exposed in # The ANativeActivity_onCreate function from SFML::Main needs to be exposed in