1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-20 04:24:36 +08:00

Features: Add compiler version support to WriteCompilerDetectionHeader.

This commit is contained in:
Stephen Kelly
2014-06-05 13:16:56 +02:00
parent b70295760c
commit ddec418a8f
3 changed files with 69 additions and 1 deletions

View File

@@ -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;