Bug: STM32MX useless CMake C standards check
When STM32MX (6.12.1) is used to generate a CMake project it puts the following logic into cmake/stm32cubemx/CMakeLists.txt:
# Validate that STM32CubeMX code is compatible with C standard
if(CMAKE_C_STANDARD LESS 11)
message(ERROR "Generated code requires C11 or higher")
endif()
At present the valid values for CMAKE_C_STANDARD are 90, 99, 11, 17, and 23. Therefore this comparison will always resolve to true and the message will not be printed if C90 or C99 are being used which is no doubt the intent. The following conditional is guaranteed to work until at least 2099:
if((CMAKE_C_STANDARD EQUAL 90) OR (CMAKE_C_STANDARD EQUAL 99))
