Skip to content

Commit

Permalink
Added find_path for unigbrk.h
Browse files Browse the repository at this point in the history
  • Loading branch information
spinicist authored and dankamongmen committed Nov 16, 2023
1 parent e8b4c79 commit 481fa39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 481fa39

Please sign in to comment.