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}