diff options
author | Brad King <brad.king@kitware.com> | 2013-06-03 17:19:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-06-03 17:19:59 (GMT) |
commit | 647745b3eedd0036d9e745007acd1d9cc460ccab (patch) | |
tree | 6b3e5cb90311ebaafd9abbdda033ec85803570dd /Tests/RunCMake/variable_watch | |
parent | 515f9af0d48be569adb51dfb43ff483cfc0d5156 (diff) | |
download | CMake-647745b3eedd0036d9e745007acd1d9cc460ccab.zip CMake-647745b3eedd0036d9e745007acd1d9cc460ccab.tar.gz CMake-647745b3eedd0036d9e745007acd1d9cc460ccab.tar.bz2 |
variable_watch: Print accesses as "CMake Debug Log" messages
Use makefile->IssueMessage() to print the unprocessed watch message in a
format consistent with other CMake messages and with a more complete
call stack for the access.
Diffstat (limited to 'Tests/RunCMake/variable_watch')
-rw-r--r-- | Tests/RunCMake/variable_watch/ModifiedAccess-stderr.txt | 7 | ||||
-rw-r--r-- | Tests/RunCMake/variable_watch/NoWatcher-stderr.txt | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/Tests/RunCMake/variable_watch/ModifiedAccess-stderr.txt b/Tests/RunCMake/variable_watch/ModifiedAccess-stderr.txt index 3287626..3ff96fc 100644 --- a/Tests/RunCMake/variable_watch/ModifiedAccess-stderr.txt +++ b/Tests/RunCMake/variable_watch/ModifiedAccess-stderr.txt @@ -1,3 +1,4 @@ -\* Variable "b" was accessed using MODIFIED_ACCESS in: .*/Tests/RunCMake/variable_watch/ModifiedAccess.cmake - The value of the variable: "b" - The list file stack: .*/Tests/RunCMake/variable_watch/CMakeLists.txt;.*/Tests/RunCMake/variable_watch/ModifiedAccess.cmake +CMake Debug Log at ModifiedAccess.cmake:3 \(set\): + Variable "b" was accessed using MODIFIED_ACCESS with value "b". +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\)$ diff --git a/Tests/RunCMake/variable_watch/NoWatcher-stderr.txt b/Tests/RunCMake/variable_watch/NoWatcher-stderr.txt index 95ff73b..d299429 100644 --- a/Tests/RunCMake/variable_watch/NoWatcher-stderr.txt +++ b/Tests/RunCMake/variable_watch/NoWatcher-stderr.txt @@ -1,4 +1,5 @@ my_func -\* Variable "b" was accessed using MODIFIED_ACCESS in: .*/Tests/RunCMake/variable_watch/NoWatcher.cmake - The value of the variable: "" - The list file stack: .*/Tests/RunCMake/variable_watch/CMakeLists.txt;.*/Tests/RunCMake/variable_watch/NoWatcher.cmake$ +CMake Debug Log at NoWatcher.cmake:8 \(set\): + Variable "b" was accessed using MODIFIED_ACCESS with value "". +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\)$ |