When using TI Compiler, setting CMAKE_C_STANDARD does not propagate any additional flag to the compiler
Here is the failure:
int main()
{
int total = 0;
for (int i = 0; i < 10; i++)
{
int a = i;
total += a * a;
}
return 0;
}
cmake_minimum_required(VERSION 3.11)
project(ti-compiler C)
set(CMAKE_C_STANDARD 99)
add_executable(main main.c)