summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/MaxRecursionDepth/variable_watch.cmake
blob: b3c7b8dfed3a683a4ec604fca3527cab96648348 (plain)
1
2
3
4
5
6
7
8
9
function(update_x)
  message("${x}")
  math(EXPR y "${x} + 2")
  variable_watch(x update_x)
  set(x "${y}")
endfunction()

variable_watch(x update_x)
set(x 4)