mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
In order to keep infinitely-recursive scripts from causing a stack overflow in the CMake executable, CMake now imposes a maximum recursion limit before issuing an error message. The limit can be adjusted at runtime with CMAKE_MAXIMUM_RECURSION_DEPTH. Fixes: #18694
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)
|