mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
variable_watch: Add test for watching a variable multiple times
This commit is contained in:
@@ -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}")
|
||||
Reference in New Issue
Block a user