We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a58320 commit 8cad77fCopy full SHA for 8cad77f
1 file changed
toolchains/stm32.cmake
@@ -34,7 +34,8 @@ endfunction()
34
35
function(_stm32_extract_version _path _out_var)
36
_stm32_resolve_path("${_path}" _resolved)
37
- string(REGEX MATCH "STM32CubeCLT[_-]([0-9]+\\.[0-9]+\\.[0-9]+)" _match "${_resolved}")
+ string(TOUPPER "${_resolved}" _resolved_upper)
38
+ string(REGEX MATCH "STM32CUBECLT[_-]([0-9]+\\.[0-9]+\\.[0-9]+)" _match "${_resolved_upper}")
39
set(${_out_var} "${CMAKE_MATCH_1}" PARENT_SCOPE)
40
endfunction()
41
0 commit comments