Skip to content

FindIntl: Fix detection of intl built in to C library

Brad King requested to merge brad.king/cmake:FindIntl-builtin into master

FindIntl: Fix detection of intl built in to C library

Since !5333 (merged) we use check_symbol_exists to check whether the intl library is built in to the C library. On some platforms the tested symbols are provided as macros so the check passes without linking any symbol. Instead, check whether a sample source file both compiles and links.

Fixes: #21979 (closed)
Backport: release:HEAD^2

Merge request reports