diff options
author | Brad King <brad.king@kitware.com> | 2017-05-11 19:56:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-05-11 19:59:48 (GMT) |
commit | 5d13fe282255d828f7aaf7765a1b069839161ee8 (patch) | |
tree | 45a557eb691c1112ba6fa33452409b2e9c280490 /Tests/CompileFeatures/CMakeLists.txt | |
parent | 8e2f3582eb9cf75c78fbe8232cdacce2357f7efc (diff) | |
download | CMake-5d13fe282255d828f7aaf7765a1b069839161ee8.zip CMake-5d13fe282255d828f7aaf7765a1b069839161ee8.tar.gz CMake-5d13fe282255d828f7aaf7765a1b069839161ee8.tar.bz2 |
Features: Record features for SunPro C 5.13 and 5.14
Diffstat (limited to 'Tests/CompileFeatures/CMakeLists.txt')
-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 2a307d0..bb18543 100644 --- a/Tests/CompileFeatures/CMakeLists.txt +++ b/Tests/CompileFeatures/CMakeLists.txt @@ -239,6 +239,16 @@ if (CMAKE_C_COMPILE_FEATURES) EXPECT_C_STATIC_ASSERT=0 ) endif() + elseif (CMAKE_C_COMPILER_ID STREQUAL "SunPro") + if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 5.13) + 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 |