CMake: unset HAVE_UNISTRING_H cache to force search

This commit is contained in:
nick black 2020-07-23 21:37:44 -04:00
parent b9ad7b9bd5
commit 71db3dbe61

View File

@ -85,11 +85,12 @@ endif()
# don't cache these, or installing them requires clearing the cache to be found. # don't cache these, or installing them requires clearing the cache to be found.
# this is going to be true for anything lacking pkg-config/CMake support. # this is going to be true for anything lacking pkg-config/CMake support.
unset(HAVE_QRCODEGEN_H CACHE) unset(HAVE_UNISTRING_H CACHE)
check_include_file("uniwbrk.h" HAVE_UNISTRING_H) 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()
unset(HAVE_QRCODEGEN_H CACHE)
if("${USE_QRCODEGEN}") if("${USE_QRCODEGEN}")
check_include_file("qrcodegen/qrcodegen.h" HAVE_QRCODEGEN_H) check_include_file("qrcodegen/qrcodegen.h" HAVE_QRCODEGEN_H)
if(NOT "${HAVE_QRCODEGEN_H}") if(NOT "${HAVE_QRCODEGEN_H}")