10 lines
159 B
CMake
10 lines
159 B
CMake
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)
|