From 481fa39678af82334c5b3b9dbc40ff33c99fb9a5 Mon Sep 17 00:00:00 2001 From: Tobias Wood Date: Wed, 15 Nov 2023 14:21:25 +0000 Subject: [PATCH] Added find_path for unigbrk.h --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d6c1420d..5c8a23f26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -167,6 +167,8 @@ endif() # this is going to be true for anything lacking pkg-config/CMake support. # unigbrk.h was introduced in libunistring 0.9.4, 2010-02-14. unset(HAVE_UNISTRING_H CACHE) +find_path(UNISTRING_INCLUDE unigbrk.h) +set(CMAKE_REQUIRED_INCLUDES ${UNISTRING_INCLUDE}) check_include_file("unigbrk.h" HAVE_UNISTRING_H) if(NOT "${HAVE_UNISTRING_H}") message(FATAL_ERROR "Couldn't find unigbrk.h from GNU libunistring")