Parcourir la source

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.
Brad King il y a 11 ans
Parent
commit
374a66b58c
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      Tests/CompileFeatures/CMakeLists.txt

+ 8 - 0
Tests/CompileFeatures/CMakeLists.txt

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