It seems that FIND_PACKAGE_HANDLE_STANDARD_ARGS is doing a case-sensitive search for whether the find_package flags included REQUIRED. (cherry-picked from commit f259976659)
f259976659
These are internal options only, not the ENABLE_HISTORY toggle.
For enabling history expansion support in the Lua console. Uses GNU libhistory.