mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Add dependency to Android's log target in CMake
This commit is contained in:
parent
10000c383a
commit
f01da91abf
@ -32,7 +32,13 @@ endif()
|
|||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
|
|
||||||
add_executable(example example.cpp)
|
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)
|
add_executable(multisink multisink.cpp)
|
||||||
target_link_libraries(multisink spdlog::spdlog Threads::Threads)
|
target_link_libraries(multisink spdlog::spdlog Threads::Threads)
|
||||||
|
Loading…
Reference in New Issue
Block a user