summaryrefslogtreecommitdiffstats
path: root/Tests/Module/WriteCompilerDetectionHeader/main.cpp
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-10 13:17:43 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-06-10 13:17:43 (GMT)
commit487b6ccdcd7612768d920050dd0b0b67cd32775f (patch)
tree92679bb17a59ebfa7a9533eb4da8580b39ceffa1 /Tests/Module/WriteCompilerDetectionHeader/main.cpp
parente0471ae2f93ef46461ff462bbc9e3be9b64c55ed (diff)
parentddec418a8f27e62ae9f37cd03d28a42eeaa1527f (diff)
downloadCMake-487b6ccdcd7612768d920050dd0b0b67cd32775f.zip
CMake-487b6ccdcd7612768d920050dd0b0b67cd32775f.tar.gz
CMake-487b6ccdcd7612768d920050dd0b0b67cd32775f.tar.bz2
Merge topic 'WriteCompilerDetectionHeader-compiler-versions'
ddec418a Features: Add compiler version support to WriteCompilerDetectionHeader. b7029576 Project: Add configurable name for version computation macros. 78acaafe Project: Separate simulated compiler id from version detection. 567af1a5 WCDH: Issue a better message for version compatibility.
Diffstat (limited to 'Tests/Module/WriteCompilerDetectionHeader/main.cpp')
-rw-r--r--Tests/Module/WriteCompilerDetectionHeader/main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/Module/WriteCompilerDetectionHeader/main.cpp b/Tests/Module/WriteCompilerDetectionHeader/main.cpp
index 8b4ea52..b807ad5 100644
--- a/Tests/Module/WriteCompilerDetectionHeader/main.cpp
+++ b/Tests/Module/WriteCompilerDetectionHeader/main.cpp
@@ -13,6 +13,18 @@
#error cxx_variadic_templates expected availability did not match.
#endif
+#if !CHECK(VERSION_MAJOR)
+#error Compiler major version did not match.
+#endif
+
+#if !CHECK(VERSION_MINOR)
+#error Compiler minor version did not match.
+#endif
+
+#if !CHECK(VERSION_PATCH)
+#error Compiler patch version did not match.
+#endif
+
int main()
{
return 0;