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