8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6650345 + 2de9a22 commit 501a8b8Copy full SHA for 501a8b8
ConfigureChecks.cmake
@@ -55,6 +55,9 @@ find_library(LIBPOSIX4 posix4)
55
find_library(LIBCPOSIX cposix)
56
find_library(LIBSOCKET socket)
57
find_library(LIBWS2_32 ws2_32)
58
+if (ANDROID)
59
+ find_library (ANDROID_LOG_LIB log REQUIRED)
60
+endif (ANDROID)
61
62
check_function_exists(gmtime_r LOG4CPLUS_HAVE_GMTIME_R )
63
check_function_exists(localtime_r LOG4CPLUS_HAVE_LOCALTIME_R )
src/CMakeLists.txt
@@ -108,6 +108,9 @@ endif ()
108
if (LOG4CPLUS_WITH_ICONV AND LIBICONV)
109
list (APPEND log4cplus_LIBS ${LIBICONV})
110
endif ()
111
+if (ANDROID AND WITH_UNIT_TESTS)
112
+ list (APPEND log4cplus_LIBS ${ANDROID_LOG_LIB})
113
+endif ()
114
target_link_libraries (${log4cplus} ${log4cplus_LIBS})
115
116
if (ANDROID)
0 commit comments