CMake: verify presence of libunistring for linking

This commit is contained in:
nick black 2021-05-01 19:51:20 -04:00
parent 4a10801bb5
commit 1d99cc2628
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -109,6 +109,7 @@ check_include_file("uniwbrk.h" HAVE_UNISTRING_H)
if(NOT "${HAVE_UNISTRING_H}")
message(FATAL_ERROR "Couldn't find uniwbrk.h from GNU libunistring")
endif()
find_library(unistring unistring REQUIRED)
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND libunistring)
set_package_properties(libunistring PROPERTIES TYPE REQUIRED)
unset(HAVE_QRCODEGEN_H CACHE)