if(NOT TARGET ryml)
    message(FATAL_ERROR "could not find target ryml")
endif()
if(NOT CMAKE_CXX_STANDARD EQUAL 17)
    message(FATAL_ERROR "CXX standard was changed by ryml")
endif()
get_target_property(ryml_cxx_std ryml CXX_STANDARD)
if(NOT ryml_cxx_std EQUAL 17)
    message(FATAL_ERROR "ryml did not inherit the cxx standard: expected 17, got ${ryml_cxx_std}")
endif()
