diff options
-rw-r--r-- | cmsis.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmsis.cmake b/cmsis.cmake index daa8132..c7922c4 100644 --- a/cmsis.cmake +++ b/cmsis.cmake @@ -17,7 +17,7 @@ # # Extract the CPU number from the system processor -string(REGEX REPLACE "^cortex-m([0-9]+[a-z]*)" "\\1" CPU_NUMBER ${CMAKE_SYSTEM_PROCESSOR}) +string(REGEX REPLACE "^cortex-m([0-9]+[a-z]*).*" "\\1" CPU_NUMBER ${CMAKE_SYSTEM_PROCESSOR}) if(NOT CPU_NUMBER) message(FATAL_ERROR "System processor '${CMAKE_SYSTEM_PROCESSOR}' not supported. Should be cortex-m<nr>.") endif() |