Skip to content

Commit a981e98

Browse files
Android: link log
1 parent 784664e commit a981e98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ set(CMAKE_CXX_STANDARD 17)
1212
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1313
add_library(minilog minilog.cpp minilog.h)
1414

15+
if(ANDROID)
16+
target_link_libraries(minilog PUBLIC log)
17+
endif()
18+
1519
if(MINILOG_RAW_OUTPUT)
1620
target_compile_definitions(minilog PUBLIC "-DMINILOG_RAW_OUTPUT=1")
1721
endif()

0 commit comments

Comments
 (0)