summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/MaxRecursionDepth/function.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/MaxRecursionDepth/function.cmake')
-rw-r--r--Tests/RunCMake/MaxRecursionDepth/function.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/MaxRecursionDepth/function.cmake b/Tests/RunCMake/MaxRecursionDepth/function.cmake
new file mode 100644
index 0000000..581cb89
--- /dev/null
+++ b/Tests/RunCMake/MaxRecursionDepth/function.cmake
@@ -0,0 +1,7 @@
+function(recursive x)
+ message("${x}")
+ math(EXPR y "${x} + 1")
+ recursive(${y})
+endfunction()
+
+recursive(3)