Unverified Commit 8bd4c87d authored by Gabi Melman's avatar Gabi Melman Committed by GitHub

Merge pull request #856 from ulvgard/cmake_android_log_dependency

Add dependency to Android's log target in CMake
parents c88b5686 f01da91a
......@@ -32,7 +32,13 @@ endif()
find_package(Threads REQUIRED)
add_executable(example example.cpp)
target_link_libraries(example spdlog::spdlog Threads::Threads)
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
find_library(log-lib log)
target_link_libraries(example spdlog::spdlog Threads::Threads log)
else()
target_link_libraries(example spdlog::spdlog Threads::Threads)
endif()
add_executable(multisink multisink.cpp)
target_link_libraries(multisink spdlog::spdlog Threads::Threads)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment