summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-10 20:27:15 (GMT)
committerBrad King <brad.king@kitware.com>2016-11-10 20:29:25 (GMT)
commit1f8480312e41b281eccad13a4afcb7c1ef49f22a (patch)
treecd792de5ca58fcf40c9acafb7dc78c92ce8ab306 /Tests/CompileFeatures
parentfd8e6b1edaf451b1a695939fea5548f599eacccb (diff)
downloadCMake-1f8480312e41b281eccad13a4afcb7c1ef49f22a.zip
CMake-1f8480312e41b281eccad13a4afcb7c1ef49f22a.tar.gz
CMake-1f8480312e41b281eccad13a4afcb7c1ef49f22a.tar.bz2
Features: Suppress c_static_assert test coverage on Intel <= 15
It works on some pre-15.0.2 versions but not others.
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r--Tests/CompileFeatures/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
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)