mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
CMake: verify presence of libunistring for linking
This commit is contained in:
parent
4a10801bb5
commit
1d99cc2628
@ -109,6 +109,7 @@ check_include_file("uniwbrk.h" HAVE_UNISTRING_H)
|
|||||||
if(NOT "${HAVE_UNISTRING_H}")
|
if(NOT "${HAVE_UNISTRING_H}")
|
||||||
message(FATAL_ERROR "Couldn't find uniwbrk.h from GNU libunistring")
|
message(FATAL_ERROR "Couldn't find uniwbrk.h from GNU libunistring")
|
||||||
endif()
|
endif()
|
||||||
|
find_library(unistring unistring REQUIRED)
|
||||||
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND libunistring)
|
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND libunistring)
|
||||||
set_package_properties(libunistring PROPERTIES TYPE REQUIRED)
|
set_package_properties(libunistring PROPERTIES TYPE REQUIRED)
|
||||||
unset(HAVE_QRCODEGEN_H CACHE)
|
unset(HAVE_QRCODEGEN_H CACHE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user