[CMake] Trouble with running cmake on MinGW

vinay kumar Kotegowder vinay.kotegowder at gmail.com
Sat Jun 8 16:28:55 EDT 2019


Hi Everyone,

I am trying to run cmake project on MinGW.
I get the below error:
[ 91%] Linking C executable test_m001.secure.elf.exe
c:/progra~2/gnutoo~1/72018-~1/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe:
unrecognized option '--major-image-version'
c:/progra~2/gnutoo~1/72018-~1/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe:
use the --help option for usage information

I have set
set(CMAKE_SYSTEM_NAME Generic)
set(CMKE_SYSTEM_PROCESSOR ARM) in my toolchain file.

Can someone see my problem?

Regards,
Vinay


More information about the CMake mailing list