Features: Blacklist cxx_constexpr test for GNU 4.5.

This commit is contained in:
Stephen Kelly 2015-01-18 14:44:13 +01:00
parent c66e331749
commit 1ae2c6b2c9
1 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,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