From 42fe8e89481a7fbc600d50e8fd81128fa107fdfe Mon Sep 17 00:00:00 2001 From: "Maxim [maxirmx] Samsonov" Date: Fri, 27 Oct 2023 00:52:34 +0300 Subject: [PATCH] Applied botan3 crypto-backend settings for Windows native builds (3) --- cmake/Modules/FindBotan.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/Modules/FindBotan.cmake b/cmake/Modules/FindBotan.cmake index e3bb892d56..b1d3747523 100644 --- a/cmake/Modules/FindBotan.cmake +++ b/cmake/Modules/FindBotan.cmake @@ -65,10 +65,9 @@ find_package(PkgConfig QUIET) # Search for the version 2 first unless version 3 requested if(NOT "${Botan_FIND_VERSION_MAJOR}" EQUAL "3") pkg_check_modules(PC_BOTAN QUIET botan-2) - set(_suffixes "botan-2") - set(_names "botan-2" "libbotan-2") + set(_suffixes "botan-2" "botan-3") + set(_names "botan-2" "libbotan-2" "botan-3" "libbotan-3") endif() - if(NOT PC_BOTAN_FOUND) pkg_check_modules(PC_BOTAN QUIET botan-3) set(_suffixes "botan-3") @@ -104,7 +103,8 @@ find_path(BOTAN_INCLUDE_DIR # find the library if(MSVC) find_library(BOTAN_LIBRARY - NAMES botan + NAMES + botan ${_names} HINTS ${_hints_lib} ${_no_def_path}