1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/testing/qownnotes/botan.patch
2023-06-26 15:24:42 +02:00

17 lines
706 B
Diff

link to system botan
--
diff --git a/libraries/botan/CMakeLists.txt b/libraries/botan/CMakeLists.txt
index 4836a38..97ad24a 100644
--- a/libraries/botan/CMakeLists.txt
+++ b/libraries/botan/CMakeLists.txt
@@ -18,7 +18,9 @@ target_link_libraries(botan PUBLIC Qt5::Core)
target_include_directories(botan PUBLIC ${CMAKE_CURRENT_LIST_DIR})
if(BUILD_WITH_SYSTEM_BOTAN)
- find_package(Botan2 REQUIRED)
+ find_package(PkgConfig REQUIRED)
+ pkg_check_modules(Botan2 REQUIRED botan-2 IMPORTED_TARGET)
+ add_library(Botan2::Botan2 ALIAS PkgConfig::Botan2)
if(NOT TARGET Botan2::Botan2)
message(FATAL_ERROR "Could not find system Botan 2 library using PkgConfig")
endif()