message: Only pass -Wno-unused-lambda-capture on clang 5 and above
diff: @@ -208,7 +208,6 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  -Wno-unused-parameter
  -Wno-unused-result
  -Wno-type-limits
  - -Wno-unused-lambda-capture
  -Wno-missing-field-initializers
  -Wno-unknown-pragmas
  -Wno-reorder)
  @@ -222,6 +221,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  endif()
  endif()
  + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.0)
  + list(APPEND warning_flags -Wno-unused-lambda-capture)
  + endif()
  +
  if(NOT CMAKE_BUILD_TYPE STREQUAL "Release")
  list(APPEND warning_flags -Werror)
  endif()
  