mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
45aa03b97a
Give `try_compile` callers a way to control the `CXX_STANDARD`, `CXX_STANDARD_REQUIRED`, and `CXX_EXTENSIONS` properties of the generated test target (or the `C` equivalents) in order to compile a test source for a particular language standard. Issue: #16456
11 lines
161 B
C
11 lines
161 B
C
#if __STDC_VERSION__ != 199901L
|
|
#error "Not GNU C 99 mode!"
|
|
#endif
|
|
#ifndef __STRICT_ANSI__
|
|
#error "Not GNU C strict ANSI!"
|
|
#endif
|
|
int main(void)
|
|
{
|
|
return 0;
|
|
}
|