From 1f8480312e41b281eccad13a4afcb7c1ef49f22a Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 10 Nov 2016 15:27:15 -0500 Subject: Features: Suppress c_static_assert test coverage on Intel <= 15 It works on some pre-15.0.2 versions but not others. --- Tests/CompileFeatures/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Tests/CompileFeatures/CMakeLists.txt b/Tests/CompileFeatures/CMakeLists.txt index 9f61186..8acdd93 100644 --- a/Tests/CompileFeatures/CMakeLists.txt +++ b/Tests/CompileFeatures/CMakeLists.txt @@ -170,6 +170,15 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Intel") endif() endif() +if (CMAKE_C_COMPILER_ID STREQUAL "Intel") + if (CMAKE_C_COMPILER_VERSION VERSION_LESS 15.0.2) + # This works on some pre-15.0.2 versions and not others. + list(REMOVE_ITEM C_non_features + c_static_assert + ) + endif() +endif() + set(C_ext c) set(C_standard_flag 11) set(CXX_ext cpp) -- cgit v0.12