From ce42deb72fab2be85a862f559984580c24cb76c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sat, 10 Aug 2019 20:51:15 +0200 Subject: [PATCH] Add Android's log library to Catch2's CMake interface --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c2fda01..0abdbe82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,6 +92,10 @@ target_include_directories(Catch2 $ ) +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)