vcpkg/ports/spdlog/fix-androidbuild.patch
Ahmed Yarub Hani Al Nuaimi 6562225c92
[spdlog] Fix build for Android (#16819)
* Add Android logging library to spdlog

* Update version

* Update version

* Update ports/spdlog/portfile.cmake

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* Update version

Co-authored-by: Ahmed Yarub Hani Al Nuaimi <ahmed.alnuaimi@zwift.com>
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2021-03-24 12:47:26 -07:00

16 lines
620 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt (revision 4a9ccf7e38e257feecce0c579a782741254eaeef)
+++ b/CMakeLists.txt (date 1616381634500)
@@ -188,6 +188,11 @@
set(PKG_CONFIG_REQUIRES fmt) # add dependency to pkg-config
endif ()
+if (ANDROID)
+ target_link_libraries(spdlog PUBLIC log)
+ target_link_libraries(spdlog_header_only INTERFACE log)
+endif ()
+
# ---------------------------------------------------------------------------------------
# Misc definitions according to tweak options
# ---------------------------------------------------------------------------------------