summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/variable_watch/ModifyWatchInCallback.cmake
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2017-09-18 23:28:21 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-21 15:09:24 (GMT)
commit28d2c6ef7e807c53a8bee76c86525f254fc4c54c (patch)
treef209106f4279ed01817c54a79792097ba2eb3161 /Tests/RunCMake/variable_watch/ModifyWatchInCallback.cmake
parent46f7a6707bd11f277a11ad7cc59adcbb1077407c (diff)
downloadCMake-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.cmake17
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}")