mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 22:30:13 -06:00
GCC mistakenly issues the pedantic warning "ISO C forbids conversion of function pointer to object pointer type". With -pedantic-errors in the compile flags, that diagnostic prevents check_symbol_exists() from detecting function symbols. The solution is to filter out -pedantic-errors (and -Werror, just to be future proof) before invoking try_compile(). Fixes: #13208
6.6 KiB
6.6 KiB