mirror of
https://github.com/Kitware/CMake.git
synced 2026-06-24 08:47:59 +00: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
342 B
C
9 lines
342 B
C
#include "c_std.h"
|
|
#if defined(C_STD) && C_STD > C_STD_23 && !defined(C_STD_LATEST)
|
|
# error "C_STANDARD 23 honored as higher standard"
|
|
#endif
|
|
#if defined(C_STD) && C_STD <= C_STD_17 && \
|
|
!(C_STD == C_STD_17 && defined(__clang_major__) && __clang_major__ < 14)
|
|
# error "C_STANDARD 23 not honored"
|
|
#endif
|