While the compiler error is no longer escalated, the pedantic-error flag still influences the test result with CMake 3.21.3.
Test case: cmake_minimum_required(VERSION 3.0) project(test) include(CheckSymbolExists) check_symbol_exists(memalign malloc.h HAVE_MEMALIGN) $ cmake [...] -- Looking for memalign -- Looking for memalign - found -- Configuring done -- Generating done$ CFLAGS="-pedantic-errors" cmake [...]
-- Looking for memalign -- Looking for memalign - not found -- Configuring done -- Generating done -- ⢀⣴⠾⠻⢶⣦⠀ ╭────────────────────────────────────────────────────╮ ⣾⠁⢠⠒⠀⣿⡁ │ Timo Röhling │ ⢿⡄⠘⠷⠚⠋⠀ │ 9B03 EBB9 8300 DF97 C2B1 23BF CC8C 6BDD 1403 F4CA │ ⠈⠳⣄⠀⠀⠀⠀ ╰────────────────────────────────────────────────────╯
signature.asc
Description: PGP signature