FindICU: component-found variable name incorrectly documented
In FindICU.cmake:
ICU component libraries are reported in::
ICU_<C>_FOUND - ON if component was found
Yet, the _FOUND
variable that is actually set is just <C>_FOUND
:
set(component_found "${component_upcase}_FOUND")
Note that <C>
is the uppercase component name; see also #19128 (closed).
IMO changing FindICU to set ICU_<C>_FOUND
(whether or not the old behavior is removed) would be the better approach than fixing the documentation to reflect reality.