From 5f9f119e9853d000b1380153840f05293b9f94b5 Mon Sep 17 00:00:00 2001 From: Vilius Sutkus '89 Date: Sun, 4 Aug 2024 00:13:24 +0300 Subject: [PATCH] Fix tmpfile dependency on Android's log library --- recipes/tmpfile/all/conanfile.py | 1 + recipes/tmpfile/all/test_package/CMakeLists.txt | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/recipes/tmpfile/all/conanfile.py b/recipes/tmpfile/all/conanfile.py index 80036d5..770570b 100644 --- a/recipes/tmpfile/all/conanfile.py +++ b/recipes/tmpfile/all/conanfile.py @@ -64,5 +64,6 @@ def package(self): def package_info(self): self.cpp_info.libs = ["tmpfile"] + self.cpp_info.system_libs = ["log"] self.cpp_info.includedirs = None self.cpp_info.bindirs = None diff --git a/recipes/tmpfile/all/test_package/CMakeLists.txt b/recipes/tmpfile/all/test_package/CMakeLists.txt index 759fc09..8cb210d 100644 --- a/recipes/tmpfile/all/test_package/CMakeLists.txt +++ b/recipes/tmpfile/all/test_package/CMakeLists.txt @@ -3,7 +3,5 @@ project(tmpfile_tests CXX) find_package(tmpfile CONFIG REQUIRED) -find_library(log-lib log) - add_executable(${PROJECT_NAME} libTests.exe.cpp) -target_link_libraries(${PROJECT_NAME} ${log-lib} tmpfile::tmpfile ${log-lib}) +target_link_libraries(${PROJECT_NAME} tmpfile::tmpfile)