aom: require_cxx_flag should say Checking C++ compiler

From 90222123fa57b18b667b07e669daabae433aab08 Mon Sep 17 00:00:00 2001
From: Wan-Teh Chang <[EMAIL REDACTED]>
Date: Tue, 23 Jan 2024 16:12:16 -0800
Subject: [PATCH] require_cxx_flag should say Checking C++ compiler

The require_cxx_flag function says
"Checking C compiler flag support for: ...". This message is apparently
copied from the require_c_flag function.

It should say "Checking C++ compiler flag support for: ...".

Change-Id: Ic6e0d6a0e174ee93598252d800615681d996873d
---
 build/cmake/compiler_flags.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build/cmake/compiler_flags.cmake b/build/cmake/compiler_flags.cmake
index f008b964f5..3afcd50b5c 100644
--- a/build/cmake/compiler_flags.cmake
+++ b/build/cmake/compiler_flags.cmake
@@ -176,11 +176,11 @@ function(require_cxx_flag cxx_flag update_cxx_flags)
   endif()
 
   unset(HAVE_CXX_FLAG CACHE)
-  message("Checking C compiler flag support for: " ${cxx_flag})
+  message("Checking C++ compiler flag support for: " ${cxx_flag})
   check_cxx_compiler_flag("${cxx_flag}" HAVE_CXX_FLAG)
   if(NOT HAVE_CXX_FLAG)
     message(
-      FATAL_ERROR "${PROJECT_NAME} requires support for C flag: ${cxx_flag}.")
+      FATAL_ERROR "${PROJECT_NAME} requires support for C++ flag: ${cxx_flag}.")
   endif()
 
   if(NOT "${AOM_EXE_LINKER_FLAGS}" STREQUAL "")