summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/SunPro-C-FeatureTests.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-05-11 19:56:27 (GMT)
committerBrad King <brad.king@kitware.com>2017-05-11 19:59:48 (GMT)
commit5d13fe282255d828f7aaf7765a1b069839161ee8 (patch)
tree45a557eb691c1112ba6fa33452409b2e9c280490 /Modules/Compiler/SunPro-C-FeatureTests.cmake
parent8e2f3582eb9cf75c78fbe8232cdacce2357f7efc (diff)
downloadCMake-5d13fe282255d828f7aaf7765a1b069839161ee8.zip
CMake-5d13fe282255d828f7aaf7765a1b069839161ee8.tar.gz
CMake-5d13fe282255d828f7aaf7765a1b069839161ee8.tar.bz2
Features: Record features for SunPro C 5.13 and 5.14
Diffstat (limited to 'Modules/Compiler/SunPro-C-FeatureTests.cmake')
-rw-r--r--Modules/Compiler/SunPro-C-FeatureTests.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/Compiler/SunPro-C-FeatureTests.cmake b/Modules/Compiler/SunPro-C-FeatureTests.cmake
new file mode 100644
index 0000000..cccf3ae
--- /dev/null
+++ b/Modules/Compiler/SunPro-C-FeatureTests.cmake
@@ -0,0 +1,14 @@
+set(_cmake_oldestSupported "__SUNPRO_C >= 0x5130")
+
+set(SunPro_C11 "${_cmake_oldestSupported} && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L || __STDC_VERSION__ >= 199901L && defined(__C11FEATURES__))")
+set(_cmake_feature_test_c_static_assert "${SunPro_C11}")
+unset(SunPro_C11)
+
+set(SunPro_C99 "${_cmake_oldestSupported} && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L")
+set(_cmake_feature_test_c_restrict "${SunPro_C99}")
+set(_cmake_feature_test_c_variadic_macros "${SunPro_C99}")
+unset(SunPro_C99)
+
+set(SunPro_C90 "${_cmake_oldestSupported}")
+set(_cmake_feature_test_c_function_prototypes "${SunPro_C90}")
+unset(SunPro_C90)