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 f25997665907af3586d99120d5b01db6eaf9f4fd)
These are internal options only, not the ENABLE_HISTORY toggle.
For enabling history expansion support in the Lua console. Uses GNU libhistory.