variable_watch.cmake 159 B

123456789
  1. function(update_x)
  2. message("${x}")
  3. math(EXPR y "${x} + 2")
  4. variable_watch(x update_x)
  5. set(x "${y}")
  6. endfunction()
  7. variable_watch(x update_x)
  8. set(x 4)