
# old gcc-4.8 support
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND
  (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 4.8) AND
  (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0))

  # c++17 compiler required
  set(C4RYML_BUILD_BENCHMARKS OFF CACHE BOOL "" FORCE)
  # LLVM required
  set(C4RYML_SANITIZE OFF CACHE BOOL "" FORCE)
endif()
