CMake编译ghs工程报警告 CMake generates a warning when compiling the ghs project.

I encountered a problem when compiling C code using the Ghs compiler through CMake.

Scenario: The MinGw Makefiles generator is used.

Problem: When compiling the source file, I always get a warning that “init.c.obj ignored with these options”, where init.c is the source file. Could it be that the ghs compiler does not recognize the.obj format of the output file? However, even after performing the following operations:

SET(CMAKE_C_OUTPUT_EXTENSION.o)
SET(CMAKE_CXX_OUTPUT_EXTENSION.o)
SET(CMAKE_ASM_OUTPUT_EXTENSION.o)

I am still unable to set the output file to a.o file. Do you have any good solutions to this warning?