Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Tests / MacroTest / context.cmake
blobf4d7035fbcdf5ab5aef129d127228910eacdb7fb
1 GET_CURRENT_FILE(current_file)
2 IF(NOT "${current_file}" STREQUAL "${CMAKE_CURRENT_LIST_FILE}")
3   MESSAGE(FATAL_ERROR
4     "Macro file context is broken.  Expected:\n"
5     "  ${CMAKE_CURRENT_LIST_FILE}\n"
6     "but got:\n"
7     "  ${current_file}\n"
8     "from the macro."
9     )
10 ENDIF(NOT "${current_file}" STREQUAL "${CMAKE_CURRENT_LIST_FILE}")