From dace45aab90a212b34ca1541251e45687ad2f3f4 Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Tue, 13 Sep 2022 13:13:30 +0200 Subject: Bug fix matching CPU number Change-Id: Ie75eb87cf06cd7bad5f17ce121ea64037c0e4788 --- cmsis.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.") endif() -- cgit v1.2.1