diff --git a/cmake/cores/Cortex-A9.cmake b/cmake/cores/Cortex-A9.cmake index f0a2f8b149..83d92164d9 100644 --- a/cmake/cores/Cortex-A9.cmake +++ b/cmake/cores/Cortex-A9.cmake @@ -31,7 +31,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-A9> + $<$:-mcpu=Cortex-A9> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M0+.cmake b/cmake/cores/Cortex-M0+.cmake index 557aa12f8b..b909cceb3b 100644 --- a/cmake/cores/Cortex-M0+.cmake +++ b/cmake/cores/Cortex-M0+.cmake @@ -27,7 +27,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M0plus> + $<$:-mcpu=Cortex-M0plus> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M0.cmake b/cmake/cores/Cortex-M0.cmake index 9f4ca1f98a..e18472528c 100644 --- a/cmake/cores/Cortex-M0.cmake +++ b/cmake/cores/Cortex-M0.cmake @@ -26,7 +26,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:-cpu=Cortex-M0> + $<$:-mcpu=Cortex-M0> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M1.cmake b/cmake/cores/Cortex-M1.cmake index 4b733a80ba..d565fa81b1 100644 --- a/cmake/cores/Cortex-M1.cmake +++ b/cmake/cores/Cortex-M1.cmake @@ -26,7 +26,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M1> + $<$:-mcpu=Cortex-M1> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M23-NS.cmake b/cmake/cores/Cortex-M23-NS.cmake index 665d03df4a..c829e0fdef 100644 --- a/cmake/cores/Cortex-M23-NS.cmake +++ b/cmake/cores/Cortex-M23-NS.cmake @@ -26,7 +26,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M23> + $<$:-mcpu=Cortex-M23> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M23.cmake b/cmake/cores/Cortex-M23.cmake index f23051a48a..477896ee62 100644 --- a/cmake/cores/Cortex-M23.cmake +++ b/cmake/cores/Cortex-M23.cmake @@ -26,7 +26,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M23> + $<$:-mcpu=Cortex-M23> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M3.cmake b/cmake/cores/Cortex-M3.cmake index e0e8ee8bee..3a15f06719 100644 --- a/cmake/cores/Cortex-M3.cmake +++ b/cmake/cores/Cortex-M3.cmake @@ -26,7 +26,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M3> + $<$:-mcpu=Cortex-M3> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M33-NS.cmake b/cmake/cores/Cortex-M33-NS.cmake index 15249e7b6a..b74043dbc6 100644 --- a/cmake/cores/Cortex-M33-NS.cmake +++ b/cmake/cores/Cortex-M33-NS.cmake @@ -28,7 +28,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M33.no_dsp.no_fp> + $<$:-mcpu=Cortex-M33.no_dsp.no_fp> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M33.cmake b/cmake/cores/Cortex-M33.cmake index 1d81a1618d..fbedea8c1f 100644 --- a/cmake/cores/Cortex-M33.cmake +++ b/cmake/cores/Cortex-M33.cmake @@ -30,7 +30,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M33.no_dsp.no_fp> + $<$:-mcpu=Cortex-M33.no_dsp.no_fp> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M33F-NS.cmake b/cmake/cores/Cortex-M33F-NS.cmake index 3f9e0148e2..16f75541f4 100644 --- a/cmake/cores/Cortex-M33F-NS.cmake +++ b/cmake/cores/Cortex-M33F-NS.cmake @@ -31,7 +31,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M33.no_dsp> + $<$:-mcpu=Cortex-M33.no_dsp> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M33F.cmake b/cmake/cores/Cortex-M33F.cmake index 870ae26d8a..b4469bec80 100644 --- a/cmake/cores/Cortex-M33F.cmake +++ b/cmake/cores/Cortex-M33F.cmake @@ -31,7 +31,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M33.no_dsp> + $<$:-mcpu=Cortex-M33.no_dsp> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M33FE-NS.cmake b/cmake/cores/Cortex-M33FE-NS.cmake index 1f7105eafb..475982ad51 100644 --- a/cmake/cores/Cortex-M33FE-NS.cmake +++ b/cmake/cores/Cortex-M33FE-NS.cmake @@ -29,7 +29,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M33> + $<$:-mcpu=Cortex-M33> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M33FE.cmake b/cmake/cores/Cortex-M33FE.cmake index 26b764ce81..7eb286eb14 100644 --- a/cmake/cores/Cortex-M33FE.cmake +++ b/cmake/cores/Cortex-M33FE.cmake @@ -29,7 +29,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M33> + $<$:-mcpu=Cortex-M33> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M4.cmake b/cmake/cores/Cortex-M4.cmake index b5551ee6d7..f7518f266f 100644 --- a/cmake/cores/Cortex-M4.cmake +++ b/cmake/cores/Cortex-M4.cmake @@ -28,7 +28,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M4.no_fp> + $<$:-mcpu=Cortex-M4.no_fp> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M4F.cmake b/cmake/cores/Cortex-M4F.cmake index 81244fba00..6f6317d550 100644 --- a/cmake/cores/Cortex-M4F.cmake +++ b/cmake/cores/Cortex-M4F.cmake @@ -40,7 +40,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M4> + $<$:-mcpu=Cortex-M4> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M7.cmake b/cmake/cores/Cortex-M7.cmake index 9fab91b2ce..9de53796f8 100644 --- a/cmake/cores/Cortex-M7.cmake +++ b/cmake/cores/Cortex-M7.cmake @@ -28,7 +28,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M7.no_fp> + $<$:-mcpu=Cortex-M7.no_fp> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M7F.cmake b/cmake/cores/Cortex-M7F.cmake index 6d76785f4e..e20355dcc0 100644 --- a/cmake/cores/Cortex-M7F.cmake +++ b/cmake/cores/Cortex-M7F.cmake @@ -31,7 +31,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M7.fp.sp> + $<$:-mcpu=Cortex-M7.fp.sp> ) target_link_options(${target} diff --git a/cmake/cores/Cortex-M7FD.cmake b/cmake/cores/Cortex-M7FD.cmake index bcc4a406f0..a4fcb9ebd0 100644 --- a/cmake/cores/Cortex-M7FD.cmake +++ b/cmake/cores/Cortex-M7FD.cmake @@ -31,7 +31,7 @@ function(mbed_set_cpu_core_options target mbed_toolchain) PUBLIC $<$:${compile_options}> $<$:${compile_options}> - $<$:--cpu=Cortex-M7> + $<$:-mcpu=Cortex-M7> ) target_link_options(${target}