diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-18 13:44:13 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 13:46:55 (GMT) |
commit | 1ae2c6b2c9def9f0d0db3a808290d485eccf062c (patch) | |
tree | a117568844d72b5854b55787c0e8bdf9f83bab2c /Tests/CompileFeatures | |
parent | c66e3317492709ab3b830024f67021dde67a7fe5 (diff) | |
download | CMake-1ae2c6b2c9def9f0d0db3a808290d485eccf062c.zip CMake-1ae2c6b2c9def9f0d0db3a808290d485eccf062c.tar.gz CMake-1ae2c6b2c9def9f0d0db3a808290d485eccf062c.tar.bz2 |
Features: Blacklist cxx_constexpr test for GNU 4.5.
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r-- | Tests/CompileFeatures/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/CMakeLists.txt b/Tests/CompileFeatures/CMakeLists.txt index 9de0da2..ccd6f30 100644 --- a/Tests/CompileFeatures/CMakeLists.txt +++ b/Tests/CompileFeatures/CMakeLists.txt @@ -52,6 +52,14 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" endif() if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" + AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.6) + # The cxx_constexpr feature happens to work (for *this* testcase) with + # GNU 4.5, but it is first documented as available with GNU 4.6. + list(REMOVE_ITEM CXX_non_features + cxx_constexpr + ) +endif() +if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8) # The cxx_alignof feature happens to work (for *this* testcase) with # GNU 4.7, but it is first documented as available with GNU 4.8. |