diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-03-27 21:57:34 -0400 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-03-27 21:57:34 -0400 |
commit | f08875ed7f6150b2e28b544e17196498f4b1f8a9 (patch) | |
tree | 9baed6d4d118a6c2cf1029a1d1fce4141ecd8586 | |
parent | bdca12ed68307ad0651df879f0ce938671799940 (diff) | |
download | cmake-f08875ed7f6150b2e28b544e17196498f4b1f8a9.tar.gz |
ENH: add missing file to branch
-rw-r--r-- | Tests/MacroTest/context.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/MacroTest/context.cmake b/Tests/MacroTest/context.cmake new file mode 100644 index 0000000000..f4d7035fbc --- /dev/null +++ b/Tests/MacroTest/context.cmake @@ -0,0 +1,10 @@ +GET_CURRENT_FILE(current_file) +IF(NOT "${current_file}" STREQUAL "${CMAKE_CURRENT_LIST_FILE}") + MESSAGE(FATAL_ERROR + "Macro file context is broken. Expected:\n" + " ${CMAKE_CURRENT_LIST_FILE}\n" + "but got:\n" + " ${current_file}\n" + "from the macro." + ) +ENDIF(NOT "${current_file}" STREQUAL "${CMAKE_CURRENT_LIST_FILE}") |