diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-06-05 11:16:56 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-06-09 21:42:20 (GMT) |
commit | ddec418a8f27e62ae9f37cd03d28a42eeaa1527f (patch) | |
tree | f36773a88e895389731ad39ce298de8641bed2b7 /Tests/Module/WriteCompilerDetectionHeader/main.cpp | |
parent | b70295760c22414ca80f51704ee1ab63872e0a7a (diff) | |
download | CMake-ddec418a8f27e62ae9f37cd03d28a42eeaa1527f.zip CMake-ddec418a8f27e62ae9f37cd03d28a42eeaa1527f.tar.gz CMake-ddec418a8f27e62ae9f37cd03d28a42eeaa1527f.tar.bz2 |
Features: Add compiler version support to WriteCompilerDetectionHeader.
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; |