Skip to content

XL: Fix C default level detection when invoked as 'cc'

Brad King requested to merge brad.king/cmake:xl-cc-default-std into master

The IBM XL C compiler does not define __STDC__ when invoked as plain cc instead of xlc, so CMAKE_C_STANDARD_COMPUTED_DEFAULT does not get set and CMake fails. Teach CMake about the XL compiler's default C standard in this case.

Fixes: #17649 (closed)

Merge request reports