build: link pcre2 with vcpkg wxwidgets

wxregex uses pcre2, link it when using static vcpkg wxwidgets.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2022-06-15 20:52:29 +00:00
parent 3e224bab40
commit 94627c1e8e
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ if(WIN32 AND CMAKE_TOOLCHAIN_FILE MATCHES vcpkg AND (X86_32 OR X86_64))
set(deb_suffix d)
endif()
foreach(lib_name libpng jpeg lzma tiff libexpat)
foreach(lib_name libpng jpeg lzma tiff libexpat pcre2)
file(
GLOB lib_file
${wxWidgets_LIB_DIR}/${lib_name}*.lib