diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2016-04-15 17:40:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-04-28 13:16:35 (GMT) |
commit | 36f32ede8d1a2aa1578a726f687a24dec4cc3f33 (patch) | |
tree | 8258a383b95b406a7a5dd0ab3f8c760c355d33ff /Tests | |
parent | d028b948721d7a6042b87e238542a11fea78edb0 (diff) | |
download | CMake-36f32ede8d1a2aa1578a726f687a24dec4cc3f33.zip CMake-36f32ede8d1a2aa1578a726f687a24dec4cc3f33.tar.gz CMake-36f32ede8d1a2aa1578a726f687a24dec4cc3f33.tar.bz2 |
Features: Record standards and features for Intel C on UNIX
Record features for Intel C 12.1 and above. Skip this for now on
Windows (where Intel C simulates MSVC).
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CompileFeatures/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/CMakeLists.txt b/Tests/CompileFeatures/CMakeLists.txt index e6acee8..9f08523 100644 --- a/Tests/CompileFeatures/CMakeLists.txt +++ b/Tests/CompileFeatures/CMakeLists.txt @@ -226,6 +226,16 @@ if (CMAKE_C_COMPILE_FEATURES) list(APPEND expected_defs EXPECT_C_STATIC_ASSERT=1 ) + elseif (CMAKE_C_COMPILER_ID STREQUAL "Intel") + if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 15) + list(APPEND expected_defs + EXPECT_C_STATIC_ASSERT=1 + ) + else() + list(APPEND expected_defs + EXPECT_C_STATIC_ASSERT=0 + ) + endif() endif() list(APPEND expected_defs |