mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Extend commit c37e279014 (Tests/CompileFeatures: Cover c_std_## and
cxx_std_## meta-features, 2024-04-02, v3.30.0-rc1~279^2~1) to cover the
per-language standard level target properties.
9 lines
310 B
C
9 lines
310 B
C
#include "c_std.h"
|
|
#if defined(C_STD) && C_STD > C_STD_11
|
|
# error "C_STANDARD 11 honored as higher standard"
|
|
#endif
|
|
#if defined(C_STD) && C_STD <= C_STD_99 && \
|
|
!(defined(__SUNPRO_C) && __SUNPRO_C < 0x5140 && C_STD == C_STD_99)
|
|
# error "C_STANDARD 11 not honored"
|
|
#endif
|