diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2019-12-12 19:00:30 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-12-12 19:00:41 (GMT) |
commit | 966a9eece32f55fab479ea6997dea68e1c2d6212 (patch) | |
tree | fcb8a3bfdcfb02ffab961e2e773da98ae333488b /Tests/RunCMake/function/CMAKE_CURRENT_FUNCTION-stdout.txt | |
parent | f6e29e04051326861afc0b4fc98a77e20b366ff0 (diff) | |
parent | 24fdd51f4503ccee33c07881cc8dd487cdc8b347 (diff) | |
download | CMake-966a9eece32f55fab479ea6997dea68e1c2d6212.zip CMake-966a9eece32f55fab479ea6997dea68e1c2d6212.tar.gz CMake-966a9eece32f55fab479ea6997dea68e1c2d6212.tar.bz2 |
Merge topic 'function-var-current'
24fdd51f45 Refactor: Replace CMAKE_CURRENT_LIST_DIR with CMAKE_CURRENT_FUNCTION_LIST_DIR
90e3e2a777 cmFunctionCommand: Introduce `CMAKE_CURRENT_FUNCTION*` variables
dd54290dab Refactor: Modernize `function` command
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !4000
Diffstat (limited to 'Tests/RunCMake/function/CMAKE_CURRENT_FUNCTION-stdout.txt')
-rw-r--r-- | Tests/RunCMake/function/CMAKE_CURRENT_FUNCTION-stdout.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/function/CMAKE_CURRENT_FUNCTION-stdout.txt b/Tests/RunCMake/function/CMAKE_CURRENT_FUNCTION-stdout.txt new file mode 100644 index 0000000..5ebc89a --- /dev/null +++ b/Tests/RunCMake/function/CMAKE_CURRENT_FUNCTION-stdout.txt @@ -0,0 +1,7 @@ +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\(\) |