variable_watch: Add test for watching a variable multiple times

This commit is contained in:
Ben Boeckel 2013-08-06 14:31:28 -04:00 committed by Brad King
parent b86e37c84f
commit 6aa0c21405
3 changed files with 14 additions and 0 deletions

View File

@ -2,3 +2,4 @@ include(RunCMake)
run_cmake(ModifiedAccess)
run_cmake(NoWatcher)
run_cmake(WatchTwice)

View File

@ -0,0 +1,2 @@
From watch1
From watch2

View File

@ -0,0 +1,11 @@
function (watch1)
message("From watch1")
endfunction ()
function (watch2)
message("From watch2")
endfunction ()
variable_watch(watched watch1)
variable_watch(watched watch2)
set(access "${watched}")