mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-11-04 10:21:36 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			706 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			18 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()
 |