diff options
author | Justin Berger <j.david.berger@gmail.com> | 2017-09-18 23:28:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-21 15:09:24 (GMT) |
commit | 28d2c6ef7e807c53a8bee76c86525f254fc4c54c (patch) | |
tree | f209106f4279ed01817c54a79792097ba2eb3161 /Tests/RunCMake/variable_watch/ModifyWatchInCallback.cmake | |
parent | 46f7a6707bd11f277a11ad7cc59adcbb1077407c (diff) | |
download | CMake-28d2c6ef7e807c53a8bee76c86525f254fc4c54c.zip CMake-28d2c6ef7e807c53a8bee76c86525f254fc4c54c.tar.gz CMake-28d2c6ef7e807c53a8bee76c86525f254fc4c54c.tar.bz2 |
test: Added additional unit test to variable_watch
This tests adding a variable_watch inside the callback to an existing
callback
Diffstat (limited to 'Tests/RunCMake/variable_watch/ModifyWatchInCallback.cmake')
-rw-r--r-- | Tests/RunCMake/variable_watch/ModifyWatchInCallback.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/RunCMake/variable_watch/ModifyWatchInCallback.cmake b/Tests/RunCMake/variable_watch/ModifyWatchInCallback.cmake new file mode 100644 index 0000000..1dee837 --- /dev/null +++ b/Tests/RunCMake/variable_watch/ModifyWatchInCallback.cmake @@ -0,0 +1,17 @@ +function (watch2) + +endfunction () + +function (watch1) + variable_watch(watched watch2) + variable_watch(watched watch2) + variable_watch(watched watch2) + variable_watch(watched watch2) + variable_watch(watched watch2) + variable_watch(watched watch2) +endfunction () + +variable_watch(watched watch1) +variable_watch(watched watch2) + +set(access "${watched}") |