Add Android's log library to Catch2's CMake interface

This commit is contained in:
Martin Hořeňovský 2019-08-10 20:51:15 +02:00
parent 46a70071a7
commit ce42deb72f
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 4 additions and 0 deletions

View File

@ -92,6 +92,10 @@ target_include_directories(Catch2
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
if (ANDROID)
target_link_libraries(Catch2 INTERFACE log)
endif()
# provide a namespaced alias for clients to 'link' against if catch is included as a sub-project
add_library(Catch2::Catch2 ALIAS Catch2)