diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-06-11 08:48:47 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-06-28 12:32:58 (GMT) |
commit | 47a8db5bcd1907c45552ad267ee8f11427a1c8f2 (patch) | |
tree | 9ecf8ed4b0ab060f8805f00d35fa537784078e31 /Tests/CompileOptions/main.cpp | |
parent | d221eac81261679d3580849218220290fcd122df (diff) | |
download | CMake-47a8db5bcd1907c45552ad267ee8f11427a1c8f2.zip CMake-47a8db5bcd1907c45552ad267ee8f11427a1c8f2.tar.gz CMake-47a8db5bcd1907c45552ad267ee8f11427a1c8f2.tar.bz2 |
Add generator expressions for compiler versions.
New generator expressions allow retrieval of the version per language,
as well as equality comparison.
Diffstat (limited to 'Tests/CompileOptions/main.cpp')
-rw-r--r-- | Tests/CompileOptions/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/CompileOptions/main.cpp b/Tests/CompileOptions/main.cpp index 90740f1..42f4cca 100644 --- a/Tests/CompileOptions/main.cpp +++ b/Tests/CompileOptions/main.cpp @@ -16,5 +16,9 @@ int main() { - return strcmp(NEEDS_ESCAPE, "E$CAPE") == 0 ? 0 : 1; + return (strcmp(NEEDS_ESCAPE, "E$CAPE") == 0 + && strcmp(EXPECTED_C_COMPILER_VERSION, TEST_C_COMPILER_VERSION) == 0 + && strcmp(EXPECTED_CXX_COMPILER_VERSION, TEST_CXX_COMPILER_VERSION) == 0 + && TEST_C_COMPILER_VERSION_EQUALITY == 1 + && TEST_CXX_COMPILER_VERSION_EQUALITY == 1) ? 0 : 1; } |