Skip to content

Commit

Permalink
Applied botan3 crypto-backend settings for Windows native builds (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Oct 26, 2023
1 parent ce2f0b4 commit 42fe8e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/Modules/FindBotan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 42fe8e8

Please sign in to comment.