message: fail on unsupported build type
diff: @@ -115,6 +115,11 @@ foreach(_LANG IN LISTS ENABLED_LANGUAGES ITEMS "HIP")
  endforeach()
  endforeach()
  +if (CMAKE_BUILD_TYPE
  + AND (CMAKE_BUILD_TYPE IN_LIST ${PROJECT_NAME}_CUSTOM_BUILD_TYPES)
  + AND (NOT ${PROJECT_NAME}_${CMAKE_BUILD_TYPE}_SUPPORTED))
  + message(FATAL_ERROR "Custom CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} not supported by the compiler")
  +endif()
  foreach(_TYPE IN LISTS ${PROJECT_NAME}_CUSTOM_BUILD_TYPES)
  cmake_dependent_option(${PROJECT_NAME}_${_TYPE}_IN_CONFIGURATION_TYPES
  