[Bug Fix] fix android log undefined in examples build (#913)

This commit is contained in:
DefTruth
2022-12-19 18:26:21 +08:00
committed by GitHub
parent e048e46f33
commit 4ac0e33b71
+6
View File
@@ -248,6 +248,12 @@ if(WITH_XPU)
list(APPEND FASTDEPLOY_LIBS -lpthread -lrt -ldl)
endif()
# log lib for Android
if(ANDROID)
find_library(log-lib log)
list(APPEND FASTDEPLOY_LIBS ${log-lib})
endif()
remove_duplicate_libraries(FASTDEPLOY_LIBS)
# Print compiler information