You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
309 B
CMake
8 lines
309 B
CMake
function(CapitalizeString string output_variable)
|
|
string(TOUPPER "${string}" _upper_string)
|
|
string(TOLOWER "${string}" _lower_string)
|
|
string(SUBSTRING "${_upper_string}" 0 1 _start)
|
|
string(SUBSTRING "${_lower_string}" 1 -1 _end)
|
|
set(${output_variable} "${_start}${_end}" PARENT_SCOPE)
|
|
endfunction()
|