2020-03-29 05:44:48 +00:00
|
|
|
function(canonical_string INV OUTV)
|
|
|
|
string(TOUPPER ${INV} _arg_uppercase)
|
|
|
|
string(REGEX REPLACE "[ -]" "_" _arg_fixed ${_arg_uppercase})
|
2020-04-11 07:12:20 +00:00
|
|
|
set(${OUTV} ${_arg_fixed} PARENT_SCOPE)
|
2020-03-29 05:44:48 +00:00
|
|
|
endfunction()
|
2021-05-18 05:59:52 +00:00
|
|
|
|
|
|
|
# Добавление общего префикса ко всем переменным в списке
|
|
|
|
function(list_transform_prepend var prefix)
|
|
|
|
set(temp "")
|
|
|
|
foreach(f ${${var}})
|
|
|
|
list(APPEND temp "${prefix}${f}")
|
|
|
|
endforeach()
|
|
|
|
set(${var} "${temp}" PARENT_SCOPE)
|
|
|
|
endfunction()
|