variable_watch: Add test for watching a variable multiple times
This commit is contained in:
parent
b86e37c84f
commit
6aa0c21405
@ -2,3 +2,4 @@ include(RunCMake)
|
||||
|
||||
run_cmake(ModifiedAccess)
|
||||
run_cmake(NoWatcher)
|
||||
run_cmake(WatchTwice)
|
||||
|
2
Tests/RunCMake/variable_watch/WatchTwice-stderr.txt
Normal file
2
Tests/RunCMake/variable_watch/WatchTwice-stderr.txt
Normal file
@ -0,0 +1,2 @@
|
||||
From watch1
|
||||
From watch2
|
11
Tests/RunCMake/variable_watch/WatchTwice.cmake
Normal file
11
Tests/RunCMake/variable_watch/WatchTwice.cmake
Normal 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}")
|
Loading…
x
Reference in New Issue
Block a user