summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-22 14:39:35 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-22 14:39:35 (GMT)
commit374a66b58ced947d9713dfd6f439a52b6646e923 (patch)
tree297d28101959037bc005f0547acfaba139300279 /Tests/CompileFeatures
parent965a50dceaa0abe2ec5870efcbc8ac0becd9615d (diff)
downloadCMake-374a66b58ced947d9713dfd6f439a52b6646e923.zip
CMake-374a66b58ced947d9713dfd6f439a52b6646e923.tar.gz
CMake-374a66b58ced947d9713dfd6f439a52b6646e923.tar.bz2
Features: Blacklist raw string literals test for GNU 4.4
RedHat gcc 4.4.7-11 supports raw string literals, so simply blacklist the test for its rejection.
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r--Tests/CompileFeatures/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/CMakeLists.txt b/Tests/CompileFeatures/CMakeLists.txt
index a276f36..0642487 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.5)
+ # The cxx_raw_string_literals feature happens to work in some distributions
+ # of GNU 4.4, but it is first documented as available with GNU 4.5.
+ list(REMOVE_ITEM CXX_non_features
+ cxx_raw_string_literals
+ )
+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.