mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
variable_watch: Add test for watching a variable multiple times
This commit is contained in:
1 parent
b86e37c84f
commit
6aa0c21405
3 files changed
+14
No files matched your search
@@ -2,3 +2,4 @@ include(RunCMake)
|
||||
|
||||
run_cmake(ModifiedAccess)
|
||||
run_cmake(NoWatcher)
|
||||
run_cmake(WatchTwice)
|
||||
@@ -0,0 +1,2 @@
|
||||
From watch1
|
||||
From watch2
|
||||
@@ -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}")
|
||||
Reference in new issue
Block a user