diff options
author | Brad King <brad.king@kitware.com> | 2014-06-10 13:17:43 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-06-10 13:17:43 (GMT) |
commit | 487b6ccdcd7612768d920050dd0b0b67cd32775f (patch) | |
tree | 92679bb17a59ebfa7a9533eb4da8580b39ceffa1 /Tests/Module/WriteCompilerDetectionHeader/main.cpp | |
parent | e0471ae2f93ef46461ff462bbc9e3be9b64c55ed (diff) | |
parent | ddec418a8f27e62ae9f37cd03d28a42eeaa1527f (diff) | |
download | CMake-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.cpp | 12 |
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; |