CMake: unset cached result of qrcodegen header check #711

This commit is contained in:
nick black 2020-06-16 13:38:50 -04:00
parent d3c3905996
commit 463f5acd6a
2 changed files with 2 additions and 3 deletions

View File

@ -73,6 +73,8 @@ elseif(${USE_OIIO})
pkg_check_modules(OIIO REQUIRED OpenImageIO>=2.1)
endif()
find_library(MATH_LIBRARIES m)
# don't cache this, or installing it requires clearing the cache to be found
unset(HAVE_QRCODEGEN_H CACHE)
check_include_file("qrcodegen/qrcodegen.h" HAVE_QRCODEGEN_H)
if("${USE_QRCODEGEN}")
if(NOT "${HAVE_QRCODEGEN_H}")

View File

@ -315,9 +315,6 @@ up someday **FIXME**.
### FAQs
* *Q:* I installed `libqrcodegen-dev`, but CMake still can't find it.
* *A:* The negative lookup gets cached. Kill your build directory and run CMake again. Patches to improve this are welcome.
* *Q:* Why didn't you just use Sixel?
* *A:* Many terminal emulators don't support Sixel. Sixel doesn't work well
with mouse selection. With that said, I do intend to support Sixel soon,