diff options
author | Brad King <brad.king@kitware.com> | 2023-05-01 18:45:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-01 19:51:21 (GMT) |
commit | a5fd03a53dda9faf4d2ef9a6a276e0aa4b5bd323 (patch) | |
tree | fecc64c997c9fa3ce0166f232935244d15c533ff /Tests/CompileFeatures | |
parent | 1b7649604e5bd4ed870df631aa8a3468ad1d553b (diff) | |
download | CMake-a5fd03a53dda9faf4d2ef9a6a276e0aa4b5bd323.zip CMake-a5fd03a53dda9faf4d2ef9a6a276e0aa4b5bd323.tar.gz CMake-a5fd03a53dda9faf4d2ef9a6a276e0aa4b5bd323.tar.bz2 |
Tests: Teach CompileFeatures to tolerate __STDC_VERSION__ on Intel Classic
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r-- | Tests/CompileFeatures/default_dialect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CompileFeatures/default_dialect.c b/Tests/CompileFeatures/default_dialect.c index b990e53..c696c83 100644 --- a/Tests/CompileFeatures/default_dialect.c +++ b/Tests/CompileFeatures/default_dialect.c @@ -20,7 +20,8 @@ # error Buildsystem error # endif # if defined(__STDC_VERSION__) && \ - !(defined(__SUNPRO_C) && __STDC_VERSION__ == 199409L) + !(__STDC_VERSION__ == 199409L && \ + (defined(__INTEL_COMPILER) || defined(__SUNPRO_C))) # error Unexpected __STDC_VERSION__ definition # endif #endif |