Add required libraries for Android CMake build

This commit is contained in:
Ahmed Yarub Hani Al Nuaimi 2021-03-22 00:08:17 -03:00
parent c1af0a3f21
commit a2e28443f0
No known key found for this signature in database
GPG Key ID: 0BF9C6706DD7AF00

View File

@ -195,6 +195,14 @@ if(SPDLOG_FMT_EXTERNAL OR SPDLOG_FMT_EXTERNAL_HO)
set(PKG_CONFIG_REQUIRES fmt) # add dependency to pkg-config
endif()
# ---------------------------------------------------------------------------------------
# Add required libraries for Android CMake build
# ---------------------------------------------------------------------------------------
if (ANDROID)
target_link_libraries(spdlog PUBLIC log)
target_link_libraries(spdlog_header_only INTERFACE log)
endif ()
# ---------------------------------------------------------------------------------------
# Misc definitions according to tweak options
# ---------------------------------------------------------------------------------------