diff options
Diffstat (limited to 'cmake/toolchain')
-rw-r--r-- | cmake/toolchain/arm-none-eabi-gcc.cmake | 4 | ||||
-rw-r--r-- | cmake/toolchain/armclang.cmake | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/cmake/toolchain/arm-none-eabi-gcc.cmake b/cmake/toolchain/arm-none-eabi-gcc.cmake index 2c0ebd0..b0a27fd 100644 --- a/cmake/toolchain/arm-none-eabi-gcc.cmake +++ b/cmake/toolchain/arm-none-eabi-gcc.cmake @@ -16,9 +16,7 @@ # limitations under the License. # -if (NOT TARGET_CPU) - set(TARGET_CPU "cortex-m4") -endif() +set(TARGET_CPU "cortex-m4" CACHE STRING "Target CPU") set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_C_COMPILER "arm-none-eabi-gcc") diff --git a/cmake/toolchain/armclang.cmake b/cmake/toolchain/armclang.cmake index bb29286..3fdc3a8 100644 --- a/cmake/toolchain/armclang.cmake +++ b/cmake/toolchain/armclang.cmake @@ -16,9 +16,7 @@ # limitations under the License. # -if (NOT TARGET_CPU) - set(TARGET_CPU "cortex-m4") -endif() +set(TARGET_CPU "cortex-m4" CACHE STRING "Target CPU") set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_C_COMPILER "armclang") |