Skip to content

Commit 8cad77f

Browse files
committed
searching for case-insensitive STM32 CLT path
1 parent 7a58320 commit 8cad77f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

toolchains/stm32.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ endfunction()
3434

3535
function(_stm32_extract_version _path _out_var)
3636
_stm32_resolve_path("${_path}" _resolved)
37-
string(REGEX MATCH "STM32CubeCLT[_-]([0-9]+\\.[0-9]+\\.[0-9]+)" _match "${_resolved}")
37+
string(TOUPPER "${_resolved}" _resolved_upper)
38+
string(REGEX MATCH "STM32CUBECLT[_-]([0-9]+\\.[0-9]+\\.[0-9]+)" _match "${_resolved_upper}")
3839
set(${_out_var} "${CMAKE_MATCH_1}" PARENT_SCOPE)
3940
endfunction()
4041

0 commit comments

Comments
 (0)