summaryrefslogtreecommitdiff
path: root/Tests/MacroTest/context.cmake
blob: f4d7035fbcdf5ab5aef129d127228910eacdb7fb (plain)
1
2
3
4
5
6
7
8
9
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}")