CMake 3.21.1 does not add flags -g -std for GNU Tools ARM Embedded 4.9 2014q4 Compiler, CMake 3.20.2 works fine
CMake Version 3.21:
# CMAKE generated file: DO NOT EDIT!
# Generated by "MinGW Makefiles" Generator, CMake Version 3.21
# compile C with C:/Program Files (x86)/GNU Tools ARM Embedded/4.9 2014q4/bin/arm-none-eabi-gcc.exe
# compile CXX with C:/Program Files (x86)/GNU Tools ARM Embedded/4.9 2014q4/bin/arm-none-eabi-g++.exe
C_DEFINES =
C_INCLUDES =
C_FLAGS =
CXX_DEFINES =
CXX_INCLUDES =
CXX_FLAGS =
CMake Version 3.20:
# CMAKE generated file: DO NOT EDIT!
# Generated by "MinGW Makefiles" Generator, CMake Version 3.20
# compile C with C:/Program Files (x86)/GNU Tools ARM Embedded/4.9 2014q4/bin/arm-none-eabi-gcc.exe
# compile CXX with C:/Program Files (x86)/GNU Tools ARM Embedded/4.9 2014q4/bin/arm-none-eabi-g++.exe
C_DEFINES =
C_INCLUDES =
C_FLAGS = -g -std=gnu99
CXX_DEFINES =
CXX_INCLUDES =
CXX_FLAGS = -g -std=gnu++14
The minimal running test project:
In each subdir is a log file include which shows the invocation of the make file generation