File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ find_library(LIBPOSIX4 posix4)
55
55
find_library (LIBCPOSIX cposix )
56
56
find_library (LIBSOCKET socket )
57
57
find_library (LIBWS2_32 ws2_32 )
58
+ if (ANDROID )
59
+ find_library (ANDROID_LOG_LIB log REQUIRED )
60
+ endif (ANDROID )
58
61
59
62
check_function_exists (gmtime_r LOG4CPLUS_HAVE_GMTIME_R )
60
63
check_function_exists (localtime_r LOG4CPLUS_HAVE_LOCALTIME_R )
Original file line number Diff line number Diff line change @@ -108,6 +108,9 @@ endif ()
108
108
if (LOG4CPLUS_WITH_ICONV AND LIBICONV )
109
109
list (APPEND log4cplus_LIBS ${LIBICONV} )
110
110
endif ()
111
+ if (ANDROID AND WITH_UNIT_TESTS )
112
+ list (APPEND log4cplus_LIBS ${ANDROID_LOG_LIB} )
113
+ endif ()
111
114
target_link_libraries (${log4cplus} ${log4cplus_LIBS} )
112
115
113
116
if (ANDROID )
You can’t perform that action at this time.
0 commit comments