[libcxxabi] [cmake] Fix a mismatched variable name

The variable name checked didn't match the one set on the line above.

This error was introduced in b3df14b6c9.
This commit is contained in:
Martin Storsjö 2022-05-10 10:22:39 +03:00
parent fb148057c5
commit bf1b81d076
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ macro(add_c_compile_flags_if_supported)
foreach(flag ${ARGN})
mangle_name("${flag}" flagname)
check_c_compiler_flag("${flag}" "C_SUPPORTS_${flagname}_FLAG")
add_compile_flags_if(CXX_SUPPORTS_${flagname}_FLAG ${flag})
add_compile_flags_if(C_SUPPORTS_${flagname}_FLAG ${flag})
endforeach()
endmacro()