You can not 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
375 B
8 lines
375 B
4 years ago
|
function\(print_self\)
|
||
|
file\(STRINGS "\${CMAKE_CURRENT_FUNCTION_LIST_FILE}" _lines\)
|
||
|
math\(EXPR _begin "\${CMAKE_CURRENT_FUNCTION_LIST_LINE} - 1"\)
|
||
|
list\(SUBLIST _lines \${_begin} 7 _lines\) # This function has 7 lines only
|
||
|
list\(JOIN _lines "\\n" _lines\)
|
||
|
message\(STATUS "Print the `\${CMAKE_CURRENT_FUNCTION}` function:\\n\${_lines}"\)
|
||
|
endfunction\(\)
|